instream.close();
}
logger.debug("event=http_post_error endpoint=" + endpoint + " error_code=" + statusCode);
throw new CMBException(new CMBErrorCodes(statusCode, "HttpError"), "Unreachable endpoint " + endpoint + " returns status code " + statusCode);
} else {
if (entity != null) {
EntityUtils.consume(entity);