src/ministruts/Response.php
public function setStatus($status) {
        if (!is_int($status)) throw new IllegalTypeException('Illegal type of parameter $status: '.gettype($status));
        if ($status < 1)      throw new InvalidArgumentException('Invalid argument $status: '.$status);

        $this->status = $status;
        return $this;
    }
public function setStatus($status) {
        if (!is_int($status)) throw new IllegalTypeException('Illegal type of parameter $status: '.gettype($status));
        if ($status < 1)      throw new InvalidArgumentException('Invalid argument $status: '.$status);

        $this->status = $status;
        return $this;
    }
public function setStatus ( $ status ) { if ( ! is_int ( $ status ) ) throw new IllegalTypeException ( 'Illegal type of parameter $status: ' . gettype ( $ status ) ) ; if ( $ status < 1 ) throw new InvalidArgumentException ( 'Invalid argument $status: ' . $ status ) ; $ this -> status = $ status ; return $ this ; }
Set the response status code.

@param  int $status - HTTP response status

@return $this
Set the response status code .