cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Ratcliffe" <a...@mrigitech.com>
Subject RE: How to set HTTP response status code
Date Tue, 01 Feb 2005 23:50:50 GMT
Thanks Leszek, using the status-code attribute of the serializer is
sufficient for my task.

Cheers
Adam

> -----Original Message-----
> From: Leszek Gawron [mailto:lgawron@mobilebox.pl]
> Sent: Wednesday, 2 February 2005 12:49 a.m.
> To: users@cocoon.apache.org
> Subject: Re: How to set HTTP response status code
>
>
> Adam Ratcliffe wrote:
> > I'm implementing a REST style web service using Cocoon. In the
> event that a
> > consumer of the service
> > requests a resource that doesn't exist the service should return a 404
> > error.
> >
> > Ideally I would do this from within the flow layer, something like:
> >
> > cocoon.sendError(404, "No resource exists for URI: " + requestURI);
> >
> > Is something like this possible?
> >
> > Cheers
> > Adam
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107893123121858&w=2
>
>
> --
> Leszek Gawron                                      lgawron@mobilebox.pl
> Project Manager                                    MobileBox sp. z o.o.
> +48 (61) 855 06 67                              http://www.mobilebox.pl
> mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message