code: PollingState<T> withStatus(String status, int statusCode) throws IllegalArgumentException {
          if (status == null) {
              throw new IllegalArgumentException("Status is null.");
          }
          this.status = status;
          this.statusCode = statusCode;
          return this;
      }
docs: Sets the polling status.
  
  @param status the polling status.
  @param statusCode the HTTP status code
  @throws IllegalArgumentException thrown if status is null.