On Wed, Mar 30, 2011 at 00:26, atomi <at...@lavabit.com> wrote:
> Can we set status codes in our routes.groovy?
No, it's not possible.
> I've been setting status codes in my templates and the routes.groovy just
> seems like a better place to set them.
> ie: response.setStatus(404)
For things like error handlers, the recommended way is to follow the
standard error handling approach:
http://code.google.com/appengine/docs/java/config/webxml.html#Error_Handlers
I tried a bit to work on the routes handler to add some default error
handlers, but it didn't really bring much more, some errors are
swallowed by GAE anyway, and there were some issues with the routes'
forward and/or redirect (I don't remember the specifics though). So I
didn't pursue further.
--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one
Guillaume
> --
> You've received this message because you've subscribed to the Gaelyk Google
> Group.
> To send an email to the group, please write to: gae...@googlegroups.com
> To unsuscribe from this group: gaelyk+un...@googlegroups.com
> To show more options: http://groups.google.fr/group/gaelyk?hl=en