def make_errordocument(app, global_conf, **kw):
    map = {}
    for status, redir_loc in kw.items():
        try:
            status = int(status)
        except ValueError:
            raise ValueError('Bad status code: %r' % status)
        map[status] = redir_loc
    forwarder = forward(app, map)
    return forwarder
Test the `__str__()` method of SpammyPosting
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Paste-2.0.1/paste/errordocument.py/make_errordocument--crossover with--dataset/ETHPy150Open pydanny/dj-spam/tests/test_models.py/TestSpammyPosting.test_str