I'm making some improvements to the default rest client engine. It turns out that if an http call returns a status code deemed an error, then the response is not available in
connection.inputStream
but rather
connection.errorStream
. The guys that made this API didn't do a very good job. Happy we're finally getting a new http client in Java 9!