Core/Http/Response.php
public function setStatusCode($code, $reasonPhrase = null)
    {
        $this->statusCode = $code;
        $this->reasonPhrase = $reasonPhrase;
        return $this;
    }
public function setStatusCode($code, $reasonPhrase = null)
    {
        $this->statusCode = $code;
        $this->reasonPhrase = $reasonPhrase;
        return $this;
    }
public function setStatusCode ( $ code , $ reasonPhrase = null ) { $ this -> statusCode = $ code ; $ this -> reasonPhrase = $ reasonPhrase ; return $ this ; }
Set the response Status-Code

@param integer $code The 3-digit integer result code to set.
@param null|string $reasonPhrase The reason phrase to use with the
provided status code; if none is provided default one associated with code will be used
@return self
Set the response Status - Code