Created
May 5, 2012 14:17
tornado 404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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