Icicle\Http\Message\Response::withStatus PHP Method

withStatus() public method

Returns a new instance with the given status.
public withStatus ( integer $code, string $reason = '' ) : Icicle\Http\Message\Response
$code integer 3-digit status code.
$reason string Description of status code or null to use default reason associated with the status code given.
return Icicle\Http\Message\Response
    public function withStatus(int $code, string $reason = '') : Response;