public function setStatus($code, $text = null)
    {
        $context = $this->_context;

        $context->status_code = (int)$code;
        $context->status_text = $text ?: $this->getStatusText($code);

        return $this;
    }