code: public <T extends BullhornEntity> CrudResponse handleHttpFourAndFiveHundredErrors(CrudResponse response,
              HttpStatusCodeException error, Integer id) {
          response.setChangedEntityId(id);
          Message message = new Message();
          message.setDetailMessage(error.getResponseBodyAsString());
          message.setSeverity("ERROR");
          message.setType(error.getStatusCode().toString());
          response.addOneMessage(message);
          response.setErrorCode(error.getStatusCode().toString());
          response.setErrorMessage(error.getResponseBodyAsString());
          return response;
  
      }
docs: Updates the passed in CrudResponse with the HttpStatusCodeException thrown by the RestTemplate.
  
  @param response
  @param error
  @param entity
  @return