See this 
slice<http://www.web2pyslices.com/slice/show/1529/custom-error-handling>for 
custom error handling with correct status codes

On Thursday, October 20, 2011 8:05:39 AM UTC-4, Grzegorz Śliwiński wrote:
>
> Currently it's quite impossible to maintain custom error pages for 
> HTTP 404 and still keep the proper response code 
>
> If we redirect with routes_onerror we can get every error page dressed 
> in overall page layout, but the response code is 200 OK, which isn't 
> very good. 
>
> If we do not redirect, we could always set the body when raising 404 
> errors, but then you'd have to define routes for every controller and 
> action and direct catch all pattern to controller::action responsible 
> just for raising HTTP 404 error. 
>
> is there any solution to this problem, or plans on fixing it?

Reply via email to