def response(code):

    def decorator(func):
        func.wsgi_code = code
        return func
    return decorator
Attaches response code to a method.
dataset/ETHPy150Open openstack/rack/rack/api/wsgi.py/response