Created
October 12, 2012 08:10
-
-
Save ealden/3877924 to your computer and use it in GitHub Desktop.
DefaultResponseError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void handleError(ClientHttpResponse response) throws IOException { | |
HttpStatus statusCode = response.getStatusCode(); | |
byte[] body = getResponseBody(response); | |
if ((statusCode.series() == CLIENT_ERROR) && (body.length == 0)) { | |
super.handleError(response); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment