src/http/Response.php
public function setStatus(int $code): Response
    {
        # `Status::getText` will throw an exception for invalid status codes
        $this->statusText = Status::getText($code);
        $this->statusCode = $code;
        return $this;
    }
public function setStatus(int $code): Response
    {
        # `Status::getText` will throw an exception for invalid status codes
        $this->statusText = Status::getText($code);
        $this->statusCode = $code;
        return $this;
    }
public function setStatus ( int $ code ) : Response { # `Status::getText` will throw an exception for invalid status codes $ this -> statusText = Status :: getText ( $ code ) ; $ this -> statusCode = $ code ; return $ this ; }
Set the status code and text

@see \sndsgd\http\Code
@param integer $code The http status code
@return \sndsgd\http\Response
Set the status code and text