voben
06/28/2019, 5:58 AMinstall(StatusPages) {
exception<Throwable> { cause ->
log.error(cause)
val error = HttpBinError(HttpStatusCode.InternalServerError, call.request.local.uri, cause.toString(), cause.cause?.message)
call.respond(HttpStatusCode.InternalServerError, error)
}
}
More info on here https://ktor.io/servers/features/status-pages.htmllenqnr
06/28/2019, 6:06 AM