hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

Add error handling to consumer #7

Closed hstaudacher closed 11 years ago

hstaudacher commented 11 years ago

Currently the consumer implementation doe snot respect http error codes. It tries to deserialize the body of 5xx and 4xx messages. I think a check should be added that the content should only be parsed when it's 2xx otherwise an exception should be throwed with the message from the body.