users@jersey.java.net

Re: [Jersey] Re: HTTP codes changing in Glassfish V3 ?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 13 Oct 2009 10:41:33 +0200

On Oct 10, 2009, at 4:06 PM, Felipe Gaścho wrote:

> then I don't know anymore :)
>
>
> this line:
>
> return Response.ok().build();
>
> returns HTTP 204 :(
>

Yes, that is the correct behavior. A 204 means there is no content
with the response (no response entity).

Paul.

>
> 2009/10/10 Felipe Gaścho <fgaucho_at_gmail.com>:
>> sorry, it was an application bug and not a Glassfish bug.
>>
>> 2009/10/10 Felipe Gaścho <fgaucho_at_gmail.com>:
>>> I respond with Response.create(...) and the client receives HTTP
>>> 204 ?
>>>
>>> Here it is the issue:
>>>
>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=10158
>>>
>>
>>
>>
>> --
>> Looking for a client application for this service:
>> http://fgaucho.dyndns.org:8080/arena-http/wadl
>>
>
>
>
> --
> Looking for a client application for this service:
> http://fgaucho.dyndns.org:8080/arena-http/wadl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>