Thanks again - `StatusPages` works. There’s a mino...
# ktor
a
Thanks again -
StatusPages
works. There’s a minor annoyance that you have to cast the exception type when handling:
Copy code
install(StatusPages) {
                    exception<ValidationException> { e ->
                        call.toJson((e as ValidationException).errors, HttpStatusCode.BadRequest)
                    }
                }