Skip to content

Instantly share code, notes, and snippets.

@tioover
Created May 5, 2012 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tioover/2602795 to your computer and use it in GitHub Desktop.
Save tioover/2602795 to your computer and use it in GitHub Desktop.
tornado 404
class PageNotFound(tornado.web.RequestHandler):
def get(self):
raise tornado.web.HTTPError(404)
routes = [
# This is url route rule
(r'.*', PageNotFound), # Place to end.
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment