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[source]

Bases: object

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