public static function isResponseWithoutBody(int $code): bool
    {
        switch ($code) {
            case self::NO_CONTENT:
            case self::NOT_MODIFIED:
                return true;
        }
        
        return ($code >= 100 && $code < 200);
    }
public static function isResponseWithoutBody(int $code): bool
    {
        switch ($code) {
            case self::NO_CONTENT:
            case self::NOT_MODIFIED:
                return true;
        }
        
        return ($code >= 100 && $code < 200);
    }
public static function isResponseWithoutBody ( int $ code ) : bool { switch ( $ code ) { case self :: NO_CONTENT : case self :: NOT_MODIFIED : return true ; } return ( $ code >= 100 && $ code < 200 ) ; }
Check if the given response status indicates no body will be sent.

@param int $code
@return bool
Check if the given response status indicates no body will be sent .