code: @Override
      public boolean shouldRetry(int retryCount, Response response) {
          int code = response.code();
          //CHECKSTYLE IGNORE MagicNumber FOR NEXT 2 LINES
          return retryCount < this.retryCount
                  && (code == 408 || (code >= 500 && code != 501 && code != 505));
      }
docs: Returns if a request should be retried based on the retry count, current response,
  and the current strategy.
  
  @param retryCount The current retry attempt count.
  @param response The exception that caused the retry conditions to occur.
  @return true if the request should be retried; false otherwise.