The ClientResponse.message contains the reason phrase (i.e. in a 200
response, it would contain "OK").

JAX-RS 1.1 made a change for adding a StatusType interface which the
Response.Status enum implements for non-standard response statuses.  I
don't think we're allowed to change spec API.  We could return a
StatusType instance from ClientResponse and you could feed that back
into the ResponseBuilder if that's what you need.

On Tue, Apr 6, 2010 at 3:05 AM, Jason Dillon <[email protected]> wrote:
> Somewhat related... what is ClientResponse.message supposed to contain?
>
> --jason
>
>
> On Apr 6, 2010, at 1:04 AM, Jason Dillon wrote:
>
>> It would be nice if the ClientResponse would expose a method to return a 
>> StatusType instance for the status code.  Though that would probably mean 
>> re-implementing the Response.Status enum into a class, since I guess its 
>> probably valid (though not used widely?) to return non-standard codes?
>>
>> --jason
>
>

Reply via email to