src/Web/ResponseBuilder.php
protected function createEmptyResponse() {
        $config = [];
        $body = $this->getFormattedBody();
        $params = [
            $this->statusCode,
            $this->getHeadersPrepared(),
            $body,
            $this->version,
            $this->_statusText
        ];
        if (is_array($this->responseClass)) {
            $config = ArrayHelper::merge($config, $this->responseClass);
        } else {
            $config['class'] = $this->responseClass;
        }
        /** @var Response $response */
        $response = \Reaction::create($config, $params);
        return $response;
    }
protected function createEmptyResponse() {
        $config = [];
        $body = $this->getFormattedBody();
        $params = [
            $this->statusCode,
            $this->getHeadersPrepared(),
            $body,
            $this->version,
            $this->_statusText
        ];
        if (is_array($this->responseClass)) {
            $config = ArrayHelper::merge($config, $this->responseClass);
        } else {
            $config['class'] = $this->responseClass;
        }
        /** @var Response $response */
        $response = \Reaction::create($config, $params);
        return $response;
    }
Create Response instance
@return Response