def error_body_response(error_code, message, __warn=True):
 if __warn:
  warnings.warn('wsgilib.error_body_response is deprecated; use the wsgi_application method on an HTTPException object instead', DeprecationWarning, 2)
 return ('<html>\n  <head>\n    <title>%(error_code)s</title>\n  </head>\n  <body>\n  <h1>%(error_code)s</h1>\n  %(message)s\n  </body>\n</html>' % {'error_code': error_code, 'message': message})

def error_body_response ( error_code , message , __warn = True ) : if __warn : warnings . warn ( 'wsgilib.error_body_response is deprecated; use the wsgi_application method on an HTTPException object instead' , DeprecationWarning , 2 ) return ( '<html>\n  <head>\n    <title>%(error_code)s</title>\n  </head>\n  <body>\n  <h1>%(error_code)s</h1>\n  %(message)s\n  </body>\n</html>' % { 'error_code' : error_code , 'message' : message } )
returns a standard html response page for an http error .