users@jsr311.java.net

Re: JSR311 Response and corresponding message

From: Denis <deniak.nospam_at_gmail.com>
Date: Tue, 9 Sep 2008 11:40:20 +0200

Hi all,

Is it possible to use the HttpServletResponse class with Jersey?
I just noticed that the sendError(int sc,String msg) method can customize an
error code.

It means that it is possible to have a header like that:
HTTP/1.1 404 My custom message


On Wed, Sep 3, 2008 at 7:06 PM, Marc Hadley <Marc.Hadley_at_sun.com> wrote:

> No, currently that is not possible. We did discuss this but since there's
> no way to set the status message for runtimes based on the Servlet container
> there seemed no point in adding it to the JSR 311 API.
>
> Marc.
>
>
> On Sep 3, 2008, at 12:48 PM, Denis wrote:
>
> Hi all,
>>
>> Is it possible to specify a message with a Response status code?
>> For instance, if I see the header of the response, I would like to see:
>> 200 Good Response
>> 400 Too bad
>> ...
>>
>> Thanks for your help
>>
>> Denis
>>
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>
>