users@jersey.java.net

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

From: Jitesh Sinha -X (jisinha - Siliconweb Inc. at Cisco) <"Jitesh>
Date: Tue, 28 Jun 2011 12:31:58 -0700

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