code: protected void errorIfStatusNotEqualTo(ClientResponse response,
              ClientResponse.Status... status) throws ClientException {
          errorIf(response, status, false);
      }
docs: If there is an unexpected status code, it gets the status message, closes
  the response, and throws an exception.
  
  @param response the response.
  @param status the expected status code(s).
  @throws ClientException if the response had a status code other than
  those listed.