Http/Response.php
public function sendStatus($protocol = null)
    {
        if (null === $protocol) {
            $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
        }
        header($protocol.' '.$this->_status.' '.$this->getStatusMessage($this->_status));

        return $this;
    }
public function sendStatus($protocol = null)
    {
        if (null === $protocol) {
            $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1';
        }
        header($protocol.' '.$this->_status.' '.$this->getStatusMessage($this->_status));

        return $this;
    }
public function sendStatus ( $ protocol = null ) { if ( null === $ protocol ) { $ protocol = isset ( $ _SERVER [ 'SERVER_PROTOCOL' ] ) ? $ _SERVER [ 'SERVER_PROTOCOL' ] : 'HTTP/1.1' ; } header ( $ protocol . ' ' . $ this -> _status . ' ' . $ this -> getStatusMessage ( $ this -> _status ) ) ; return $ this ; }
Sends the HTTP status header.

@param string|null $protocol
@return \m\Http\Response
Sends the HTTP status header .