See this slice<http://www.web2pyslices.com/slice/show/1529/custom-error-handling> for custom error handling with correct status codes
On Tuesday, October 5, 2010 4:52:09 AM UTC-4, zdzana wrote: > > I created my own error pages for 400/404 using routes_onerror. This > works well, but the problem is the lack of proper http status (200 > instead of the expected 404). Is there a way to error on my web page > to set the status of 404 in reply? response.status = 404 redirects to > my own page that redirects ... into an infinite loop of redirects. Is > it possible to set the status without redirection?

