def error_response_app(error_code, message, debug_message=None, __warn=True):
 if __warn:
  warnings.warn('wsgilib.error_response_app is deprecated; use the wsgi_application method on an HTTPException object instead', DeprecationWarning, 2)
 def application(environ, start_response):
  (status, headers, body) = error_response(environ, error_code, message, debug_message=debug_message, __warn=False)
  start_response(status, headers)
  return [body]
 return application

def error_response_app ( error_code , message , debug_message = None , __warn = True ) : if __warn : warnings . warn ( 'wsgilib.error_response_app is deprecated; use the wsgi_application method on an HTTPException object instead' , DeprecationWarning , 2 ) def application ( environ , start_response ) : ( status , headers , body ) = error_response ( environ , error_code , message , debug_message = debug_message , __warn = False ) start_response ( status , headers ) return [ body ] return application
an application that emits the given error response .