Sorry, I meant a page for HTTP 400 errors, not 404 errors, e.g. when I call 
raise 
HTTP(404, 'bad values'), but the principle is the same.
 
On Sunday, 19 April 2020 22:28:12 UTC+1, Yan Wong wrote:
>
> I want to have a custom styled page for my 404 errors, so that when I do 
> raise(404, 'bad values') it returns a nicely styled page. I have placed 
> the following line in my routes.py
>
> routes_onerror = [('myapp/404', '/myapp/default/custom_404.html')]
>
> but I don't know how to access the error message itself ('bad values' in 
> this case) within the custom page. It doesn't seem to exist in the request 
> object?
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/cc711524-26af-4f7c-890a-11ad23ba001f%40googlegroups.com.

Reply via email to