code: boolean isErrorResponse(HttpResponse response) {
          StatusLine status = response.getStatusLine();
          if (status == null || status.getStatusCode() != 200) {
              return true;
          }
          return false;
      }
docs: /*
  Check the response from the endpoint to see if there was an error