Are you sure you are sing web2py trunk? Earlier version do not support the 404->....
On Wednesday, 11 July 2012 09:24:03 UTC-5, Sushant Taneja wrote: > > Yes, sure. I have attached my routes.py with this reply. > > On Wednesday, July 11, 2012 7:49:12 PM UTC+5:30, Massimo Di Pierro wrote: >> >> Can I see your full routes? >> >> On Wednesday, 11 July 2012 02:26:04 UTC-5, Sushant Taneja wrote: >>> >>> I wrote the below line in routes.py. But I am getting a server response >>> of 400 instead of 404. >>> >>> INFO 2012-07-11 07:21:03,242 dev_appserver.py:2952] "GET /staneja >>> HTTP/1.1" 400 - >>> >>> So I tried after changing 404 to 400 but it is still the same. No >>> redirection or request for the target URL is made. >>> >>> What might be causing the problem ? >>> >>> I am using web2py 1.99.7 and running it on GAE dev_appserver (localhost) >>> >>> On Sunday, July 8, 2012 7:34:47 AM UTC+5:30, Massimo Di Pierro wrote: >>>> >>>> It can be done already >>>> >>>> ('/$anything','404->/myapp/default/catchall/$anything') >>>> >>>> On Saturday, 7 July 2012 18:25:25 UTC-5, pbreit wrote: >>>>> >>>>> I wonder if we should try to support this formally. Perhaps if as a >>>>> "catchall" if the router doesn't find any valid routes and before it >>>>> returns a 404? >>>> >>>>