cherrypy.tutorial.tut10_http_Errors模块

教程:HTTP错误

httperror用于向客户端返回错误响应。Cherrypy有很多关于如何记录、显示和格式化这些错误的选项。

class cherrypy.tutorial.tut10_http_errors.HTTPErrorDemo[源代码]

基类:object

_cp_config = {'error_page.403': '/tmp/vpy_rst/lib/python3.7/site-packages/cherrypy/tutorial/custom_error.html'}
error(code)[源代码]
index()[源代码]
messageArg()[源代码]
toggleTracebacks()[源代码]