code: public String getResponseString(ClientResponse response) throws Exception {
      if (debug)
        LOGGER.log(Level.INFO, "status: " + response.getStatus());
      String responseText = response.getEntity(String.class);
      if (response.getStatus() != 200) {
        handleError("status " + response.getStatus() + ":'" + responseText + "'");
      }
      return responseText;
    }
docs: get the Response string
  
  @param response
  @return the String representation of a response
  @throws Exception