Phly\Conduit\Http\Response::withStatus PHP Method

withStatus() public method

public withStatus ( $code, $reasonPhrase = null )
    public function withStatus($code, $reasonPhrase = null)
    {
        if ($this->complete) {
            return $this;
        }
        $new = $this->psrResponse->withStatus($code, $reasonPhrase);
        return new self($new);
    }