public function send($content, int $status = HttpResponse::HTTP_OK, array $headers = []) : HttpResponse
    {
        $headers = array_merge($this->headers, $headers);

        if (is_array($content)) {
            $content = json_encode($content);
        }

        $response = $this->response->create($content, $status, $headers);

        return $this->createOnly ? $response : $response->send();
    }