code: @Override
    public void processResponse(CloseableHttpResponse response) throws IOException, UnexpectedResponseException {
      if (response.getStatusLine().getStatusCode() >= 400) {
        if (response.getEntity() != null) {
          throw new RuntimeException("Failed. " + EntityUtils.toString(response.getEntity())
                                   + " , response: " + ToStringBuilder.reflectionToString(response, ToStringStyle.SHORT_PREFIX_STYLE));
        }
        throw new RuntimeException("Failed. Response: " + ToStringBuilder.reflectionToString(response, ToStringStyle.SHORT_PREFIX_STYLE));
      }
    }
docs: Default implementation where any status code equal to or greater than 400 is regarded as a failure.
  {@inheritDoc}
  @see org.apache.gobblin.writer.http.HttpWriterDecoration#processResponse(org.apache.http.HttpResponse)