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.
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.