def response(code):
 def decorator(func):
  func.wsgi_code = code
  return func
 return decorator

def response ( code ) : def decorator ( func ) : func . wsgi_code = code return func return decorator
attaches response code to a method .