public function generate($code)
    {
        if ($this->isValid($code)) {
            return sprintf('HTTP/%s %s %s', $this->version, $code, $this->getDescriptionByStatusCode($code));
        } else {
            return false;
        }
    }
public function generate($code)
    {
        if ($this->isValid($code)) {
            return sprintf('HTTP/%s %s %s', $this->version, $code, $this->getDescriptionByStatusCode($code));
        } else {
            return false;
        }
    }
public function generate ( $ code ) { if ( $ this -> isValid ( $ code ) ) { return sprintf ( 'HTTP/%s %s %s' , $ this -> version , $ code , $ this -> getDescriptionByStatusCode ( $ code ) ) ; } else { return false ; } }
Generates status header by associated code

@param integer $code
@return string|boolean
Generates status header by associated code