Could this be configurable? I.e. have a setting in the router to
specify if we want a 400 or 404 when this occurs?

Matt

On Jan 20, 5:43 am, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Jan 19, 2011, at 3:55 AM, Albert Abril wrote:
>
> > Just a suggestion.
>
> > When I an incorrect url, for example:
> >http://web2py.com/layout (instead ofhttp://web2py.com/layouts)
>
> > ...appears an "invalid controller" error, as it's expected.
>
> > What if it instead is shown a nicer 404?
>
> Right now it's a 400 error: bad request. It probably *should* be a 404, 
> though the "invalid controller" text is useful (I think) in explaining where 
> the URL went wrong. You can manage this yourself, to some extent anyway, 
> through routes.py.

Reply via email to