def error(code):
    def wrapped(method):
        # Register.
        ERROR_HANDLERS[code] = method
        return method
    return wrapped


# Error handlers
Registers a method for processing errors of a certain HTTP code.
dataset/ETHPy150Open toastdriven/itty/itty.py/error