I have an API route that outputs records from a database as JSON. I would also like to output an HTTP status code.
I have tried echoing (as shown below) the HTTP stat