Skip to content

Instantly share code, notes, and snippets.

@ealden
Created October 12, 2012 08:10
Show Gist options
  • Save ealden/3877924 to your computer and use it in GitHub Desktop.
Save ealden/3877924 to your computer and use it in GitHub Desktop.
DefaultResponseError
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