# cherrypy.tutorial.tut10_http_errors module

Tutorial: HTTP errors

HTTPError is used to return an error response to the client. CherryPy has lots of options regarding how such errors are logged, displayed, and formatted.

class cherrypy.tutorial.tut10_http_errors.HTTPErrorDemo

  Bases: `object`

  _cp_config = {'error_page.403': '/build/cherrypy3-lzdaML/cherrypy3-18.10.0/cherrypy/tutorial/custom_error.html'}
  error(code)
  index()
  messageArg()
  toggleTracebacks()