protected function filterStatus(int $status)
        {
            $messages = $this->getMessages();
            if (!isset($messages[$status])) {
                throw new \InvalidArgumentException('Invalid HTTP status code');
            }
            return $status;
        }