I wonder what code you look at... InvocationException for sure does reference the HttpResponse:
http://java.net/projects/jax-rs-spec/sources/git/content/src/jax-rs-api/src/main/java/javax/ws/rs/client/InvocationException.java
Marek
On 08/25/2011 03:46 PM, Bill Burke wrote:
> There's a problem with these methods (and other's like it):
>
> <T> T get(Class<T> responseType) throws InvocationException;
>
> <T> T get(GenericType<T> responseType) throws InvocationException;
>
>
> Currently InvocationException doesn't have a reference to the HttpResponse. A user will many times be interested in the
> status code and sometimes even the representation of the failure.
>
>