I've seen references to

m.abort(404, 'Not Found')

this does not work in my 0.9 install

I've also seen

return response(code=404)

which does work. However, where is the API documentation for what http
codes you can specify? I could not find it. Are there any other
arguements? I'd really like to be able to return a 404 but add a custom
message as m.abort does, without modifying my error template.

thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to