Embryo/Http/Message/Traits/ResponseTrait.php
protected function filterStatus(int $status)
        {
            $messages = $this->getMessages();
            if (!isset($messages[$status])) {
                throw new \InvalidArgumentException('Invalid HTTP status code');
            }
            return $status;
        }
protected function filterStatus(int $status)
        {
            $messages = $this->getMessages();
            if (!isset($messages[$status])) {
                throw new \InvalidArgumentException('Invalid HTTP status code');
            }
            return $status;
        }
protected function filterStatus ( int $ status ) { $ messages = $ this -> getMessages ( ) ; if ( ! isset ( $ messages [ $ status ] ) ) { throw new \ InvalidArgumentException ( 'Invalid HTTP status code' ) ; } return $ status ; }
Validates Http status code.

@param int $status
@return int
@throws InvalidArgumentException
Validates Http status code .