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 ...