es = conn.getErrorStream();
String errorBody = null;
if (es != null) {
errorBody = IOUtils.toString(es, "UTF-8");
if (errorBody != null && conn.getContentType().toLowerCase().contains("json")) {
Response coinbaseResponse;
try {
coinbaseResponse = deserialize(errorBody, Response.class);
} catch (Exception ex) {
throw new CoinbaseException(errorBody);
}