I\'m trying to render a custom error page for all 404 and 500 errors. So I have defined two methods not_found and internal_server_error in ErrorController class.
Well it turns out that the variable config.consider_all_requests_local was set to true and hence my requests weren't being routed to custom error pages.