src/Httpstatus.php
public function hasStatusCode($statusCode)
    {
        try {
            $statusCode = $this->filterStatusCode($statusCode);
        } catch (InvalidArgumentException $e) {
            return false;
        }

        return isset($this->httpStatus[$statusCode]);
    }
public function hasStatusCode($statusCode)
    {
        try {
            $statusCode = $this->filterStatusCode($statusCode);
        } catch (InvalidArgumentException $e) {
            return false;
        }

        return isset($this->httpStatus[$statusCode]);
    }
public function hasStatusCode ( $ statusCode ) { try { $ statusCode = $ this -> filterStatusCode ( $ statusCode ) ; } catch ( InvalidArgumentException $ e ) { return false ; } return isset ( $ this -> httpStatus [ $ statusCode ] ) ; }
Check if the code exists in a collection.

@param int $statusCode http status code

@throws InvalidArgumentException If the requested $statusCode is not valid

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