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