Package cherrypy :: Package tutorial :: Module tut10_http_errors
[hide private]
[frames] | no frames]

Module tut10_http_errors

source code

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.

Classes [hide private]
  HTTPErrorDemo
Variables [hide private]
  localDir = '/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/c...
  curpath = '/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/ch...
  tutconf = '/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/ch...
  __package__ = 'cherrypy.tutorial'
Variables Details [hide private]

localDir

Value:
'/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/cherrypy3-3.2.2/cher\
rypy/tutorial'

curpath

Value:
'/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/cherrypy3-3.2.2/cher\
rypy/tutorial'

tutconf

Value:
'/var/build/temp/tmp.iPfnr5LTs4/4.0-0-0/cherrypy3/cherrypy3-3.2.2/cher\
rypy/tutorial/tutorial.conf'