halt

fun halt(content: Any): Nothing

Sends error response.

Parameters

content

Message for error response.


fun halt(code: Int = 500, content: Any = ""): Nothing

Sends error response.

Parameters

code

Status code for error response.

content

Message for error response.