public function isSuccessful(): bool
    {
        return $this->statusCode >= StatusCode::OK
            && $this->statusCode < StatusCode::MULTIPLE_CHOICES;
    }
public function isSuccessful(): bool
    {
        return $this->statusCode >= StatusCode::OK
            && $this->statusCode < StatusCode::MULTIPLE_CHOICES;
    }
public function isSuccessful ( ) : bool { return $ this -> statusCode >= StatusCode :: OK && $ this -> statusCode < StatusCode :: MULTIPLE_CHOICES ; }
Is response successful?

@return bool
Is response successful?