Tornado Custom Error Handler For Static File
How can I show custom 404 error page for static files? in my current application handler I have added last pattern as follows [ (r'/(favicon.ico)', tornado.web.StaticFileHandle
Solution 1:
This is a bit tricky; you need to subclass StaticFileHandler and override its write_error method, then install that class with static_handler_class Application setting.
Post a Comment for "Tornado Custom Error Handler For Static File"