inline suspend fun <T : Any> send(data: T, status: HttpStatusCode = HttpStatusCode.OK) Sends the specified data as a JSON response with a specified status code.
Parameters
The data to send in the response.
The HTTP status code to return. Default is 200 OK
.