public function setStatus($statusCode)
    {
        if ($this->statusCode === null) {
            $this->statusCode = $statusCode;
            $this->response->setStatusCode($statusCode);
        }
    }
public function setStatus($statusCode)
    {
        if ($this->statusCode === null) {
            $this->statusCode = $statusCode;
            $this->response->setStatusCode($statusCode);
        }
    }
public function setStatus ( $ statusCode ) { if ( $ this -> statusCode === null ) { $ this -> statusCode = $ statusCode ; $ this -> response -> setStatusCode ( $ statusCode ) ; } }
Sets the given status code in the corresponding header.

Note that headers are generally not overwritten!

@param int $statusCode
Sets the given status code in the corresponding header .