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

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

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

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

        return $this;
    }
public function setStatus ( $ code , $ text = null ) { $ context = $ this -> _context ; $ context -> status_code = ( int ) $ code ; $ context -> status_text = $ text ? : $ this -> getStatusText ( $ code ) ; return $ this ; }
Sets the HTTP response code

@param int    $code
@param string $text

@return static
Sets the HTTP response code