docs: public void setMaxRetriesOnIOError(int retries) {
          if (retries < 0) {
              throw new IllegalArgumentException("Parameter retries must be greater or equal to zero.");
          }
  
          HttpMethodRetryHandler retryHandler = new DefaultHttpMethodRetryHandler(retries, false);
          client.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryHandler);
          clientViaProxy.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryHandler);
      }