Version 2

    Client Framework Error Handling

     

    If you are using the Client Framework and your proxy methods return something other than an un-type ClientResponse, then the default client error handling comes into play.  Any response code that is greater tha 399 will automatically cause a org.jboss.resteasy.client.ClientResponseFailure exception

     

       @GET
       ClientResponse<String> get() // will throw a ClientResponseFailure on response > code 399
    
       @POST
       ClientResponse post(); // will not throw a ClientResponseFailure
    
       @GET
       MyObject get(); // will throw a ClientResponseFailure on response code > 399