private @Nullable String readError(HttpURLConnection connection) throws IOException {
      InputStream stream = connection.getErrorStream();
      return stream == null ? null : StreamUtil.readText(new InputStreamReader(unzipStreamIfNeeded(connection, stream), getCharset(connection)));
    }
private @Nullable String readError(HttpURLConnection connection)