private static String responseToText(final Response response) throws IOException {
   return StringUtils.safeSubString(IOUtils.readString(response.body().charStream()), 8196);
 }