On Monday, October 3, 2022 at 5:14:23 PM UTC-7 Dave S wrote:

> If I mistype the funtion or controller name, the response displayed is 
> "invalid function (controller/wrongfunc) " or "invalid controller 
> (wrongctlr/function)".   These have status 404, but don't display "404" in 
> the body.  I think it would make the error message better if it was "404:  
> invalid function (controller/wrongfunc)"  instead.
>
> Is there a good reason not to have the 404 status shown to the user?  
> There is a 404 page template in applications/myappy/static.
>

It's very miminal, and not really a template, but does show "404"  to the 
user.  My suggestion is to jut edit the strings for badf and badc in 
compileapp.py:run_controller_in(), adding the "404: " there.

 
>
/dps
>
>

-- 
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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/0f1863f0-3a55-4fc1-817c-8784bb0190f5n%40googlegroups.com.

Reply via email to