Write the code that will handle the InternalServerException exception:
/* your code here */ { call, cause ->
call.respondText(
text = "500: Something went wrong", status = HttpStatusCode.InternalServerError
)
}Write the code that will handle the InternalServerException exception:
/* your code here */ { call, cause ->
call.respondText(
text = "500: Something went wrong", status = HttpStatusCode.InternalServerError
)
}Create a free account to access the full topic