code: public String getResponseText() {
          if (this.bodyBytes == null) {
              return "";
          }
  
          Charset charset = contentType != null ? contentType.charset(UTF_8) : UTF_8;
          try {
              return new String(this.bodyBytes, charset.name());
          } catch (UnsupportedEncodingException e) {
              logger.warn("Failed to extract text from response body. Error: " + e.getMessage());
              return null;
          }
      }
docs: This method parses the response body as a String.
  If this method is called, then subsequent calls to {@link #getResponseByteStream()} or {@link #getResponseBytes()}
  will return null unless the {@link Request} was made using a <code>download()</code> method.
  
  @return The body of the response as a String. Empty string if there is no body.