parameters: (error_code, message, debug_message=None,
                         __warn=True)
return_statement: return application
docstring: An application that emits the given error response.
  
      **Note:** Deprecated
docstring_summary: An application that emits the given error response.
docstring_tokens: An application that emits the given error response .
function: def error_response_app(error_code, message, debug_message=None,
                         __warn=True):
      """
      An application that emits the given error response.
  
      **Note:** Deprecated
      """
      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
function_tokens: 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