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