cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <>
Subject Re: Setting response status code from flow
Date Mon, 04 Aug 2003 18:08:47 GMT
Unico Hommes wrote:
> Hi all,
> I would like to be able to response.setStatus from the flow. I have two
> scenarios I would like to use this:
> 1) In an authentication module where failure to authenticate should
> result in 401 in order to give the browser the chance to recover from
> being denied access to a certain resource.
> 2) In the davmap all responses that do not imply an http content body.
> Currently the only way to set the status code in cocoon is by specifying
> a status-code attribute on the serializer. This means that body-less
> responses can only be programmed using some dummy pipeline as is done in
> the current davmap sample.
> What do other think? Are these convincing use cases for adding
> response.setStatus to the FOM?

I think so, but that doesn't get you much. ;)


View raw message