users@jersey.java.net

[Jersey] Re: How to set error response code from Rest web service and get it by Jersey client

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Tue, 28 Jun 2011 21:52:29 +0200

http://jersey.java.net/nonav/apidocs/latest/jersey/javax/ws/rs/core/Response.html
http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/client/ClientResponse.html
http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e363


On 6/28/11 9:31 PM, Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco)
wrote:
> Is there a way to set error code and message by Rest API and then to
> retrieve it by using Jersey client?
> Currently I know only about Response.ok(variable).build() which is
> supposed to be called when request has been processed ok.
>
> Thanks
> -Jitesh
>