src/BaseResponse.php
public function withStatus($code = null, $reasonPhrase = null) {
        $this->validateResponse();
        return $this->response->withStatus($code, $reasonPhrase);
    }
public function withStatus($code = null, $reasonPhrase = null) {
        $this->validateResponse();
        return $this->response->withStatus($code, $reasonPhrase);
    }
@param null $code
@param null $reasonPhrase

@return Response|static
@throws \Exception