lib/Http/Response.php
public function setResponseCode($code)
    {
        if (!ResponseCode::isValid($code)) {
            throw new \InvalidArgumentException('setResponseCode(): Invalid HTTP response code given of value ' . strval($code));
        }

        $this->statusCode = $code;
        return $this;
    }
public function setResponseCode($code)
    {
        if (!ResponseCode::isValid($code)) {
            throw new \InvalidArgumentException('setResponseCode(): Invalid HTTP response code given of value ' . strval($code));
        }

        $this->statusCode = $code;
        return $this;
    }
public function setResponseCode ( $ code ) { if ( ! ResponseCode :: isValid ( $ code ) ) { throw new \ InvalidArgumentException ( 'setResponseCode(): Invalid HTTP response code given of value ' . strval ( $ code ) ) ; } $ this -> statusCode = $ code ; return $ this ; }
Sets the HTTP response code.

@param int $code
@return $this
Sets the HTTP response code .