public function setStatusCode($code)
    {
        // set status code
        $this->statusCode = $code;

        // lookup reason phrase by code and set
        $this->setStatusReasonPhrase(HttpProtocol::getStatusReasonPhraseByCode($code));
    }
public function setStatusCode($code)
    {
        // set status code
        $this->statusCode = $code;

        // lookup reason phrase by code and set
        $this->setStatusReasonPhrase(HttpProtocol::getStatusReasonPhraseByCode($code));
    }
public function setStatusCode ( $ code ) { // set status code $ this -> statusCode = $ code ; // lookup reason phrase by code and set $ this -> setStatusReasonPhrase ( HttpProtocol :: getStatusReasonPhraseByCode ( $ code ) ) ; }
Sets the http response status code

@param int $code The status code to set

@return void
Sets the http response status code