or use StatusPages feature ``` ...
# ktor
o
or use StatusPages feature
Copy code
install(StatusPages) {
                        exception<Throwable> { cause ->
                            call.respond(TextContentResponse(HttpStatusCode.InternalServerError, ContentType.Text.Plain.withCharset(Charsets.UTF_8), cause.javaClass.simpleName))
                        }

                    }