I am using the following code to return a Json encoded response from a function.

```
return response()->json($returnArray);

```

However the reponse is as follow and include the HTTP headers:

```
Cache-Control: no-cache, private
Content-Type:  application/json
Date:          Mon, 23 Oct 2017 15:34:59 GMT

{"status":"success"}  

```

How can I set the response so the headers are not included and only include the JSON?

```
{"status":"success"} 

```