Hexa
10/19/2021, 8:32 PMreturn@get
required here or can it can remove?
route("/test") {
get {
try {
// some logic
call.respond(HttpStatusCode.OK)
} catch (e: Exception) {
return@get call.respond(HttpStatusCode.InternalServerError) // here
}
}
Rustam Siniukov
10/19/2021, 9:31 PMStatusPages
plugin to handle exceptions.