src/rehyved/Http/HttpStatus.php
public static function isSuccessful(int $statusCode): bool
    {
        return ($statusCode >= HttpStatus::SUCCESSFUL) && ($statusCode < HttpStatus::REDIRECTION);
    }
public static function isSuccessful(int $statusCode): bool
    {
        return ($statusCode >= HttpStatus::SUCCESSFUL) && ($statusCode < HttpStatus::REDIRECTION);
    }
public static function isSuccessful ( int $ statusCode ) : bool { return ( $ statusCode >= HttpStatus :: SUCCESSFUL ) && ( $ statusCode < HttpStatus :: REDIRECTION ) ; }
Checks if the provided status code falls in the Successful range of HTTP statuses
@param int $statusCode the status code to check
@return bool TRUE if it falls into the Successful range, FALSE if not
Checks if the provided status code falls in the Successful range of HTTP statuses