标签归档:http500

RSS feed of http500

Web.py配置自定义404和500错误信息

Web.py如何自定义Http404和Http500错误信息?


import web

urls = (...)
app =  web.application(urls, globals())

def notfound():
    return web.notfound("Sorry, the page you were looking for was not found.")

    # You can use template result like below, either is ok:
    #return web.notfound(render.notfound ...

继续阅读