src/Httpstatus.php
public function hasReasonPhrase($statusText)
    {
        try {
            $statusText = $this->filterReasonPhrase($statusText);
        } catch (InvalidArgumentException $e) {
            return false;
        }

        return (bool) $this->fetchStatusCode($statusText);
    }
public function hasReasonPhrase($statusText)
    {
        try {
            $statusText = $this->filterReasonPhrase($statusText);
        } catch (InvalidArgumentException $e) {
            return false;
        }

        return (bool) $this->fetchStatusCode($statusText);
    }
public function hasReasonPhrase ( $ statusText ) { try { $ statusText = $ this -> filterReasonPhrase ( $ statusText ) ; } catch ( InvalidArgumentException $ e ) { return false ; } return ( bool ) $ this -> fetchStatusCode ( $ statusText ) ; }
Check if the hasReasonPhrase exists in a collection.

@param int $statusText http status text

@throws InvalidArgumentException If the requested $statusText is not valid

@return bool true|false
Check if the hasReasonPhrase exists in a collection .