public function addByHttpCode($nCode)
    {
        $sProtocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL']
                : 'HTTP/1.1';
        $sHeader   = "{$sProtocol} {$nCode} "
            .self::getHTTPExplanationByCode($nCode);
        return $this->add($sHeader);
    }
public function addByHttpCode($nCode)
    {
        $sProtocol = isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL']
                : 'HTTP/1.1';
        $sHeader   = "{$sProtocol} {$nCode} "
            .self::getHTTPExplanationByCode($nCode);
        return $this->add($sHeader);
    }
public function addByHttpCode ( $ nCode ) { $ sProtocol = isset ( $ _SERVER [ 'SERVER_PROTOCOL' ] ) ? $ _SERVER [ 'SERVER_PROTOCOL' ] : 'HTTP/1.1' ; $ sHeader = "{$sProtocol} {$nCode} " . self :: getHTTPExplanationByCode ( $ nCode ) ; return $ this -> add ( $ sHeader ) ; }
It adds the header to the stack by HTTP code.
@param integer $nCode The code.
@return self.
It adds the header to the stack by HTTP code .