Fix for HTTP error responses being handled as failed requests

On HTTP errors, set the HttpClientResponse input stream to the
error stream. This allows for reading the server's error response
in the handleHttpResponse callback.
Merge pull request #368 from tjunnone/netErrorResponse

Fix for HTTP error responses being handled as failed requests