private function makeResponse() { if ($this->http_status_code != HttpStatusCode::CODE_200_OK) { $this->body = ArrayHelper::recursive_filter($this->body); } $this->body['meta'] = $this->meta; $this->body['jsonapi'] = ['version' => $this->api_version]; return new JsonResponse($this->body, $this->http_status_code, $this->header, $this->options); }