andrewoma
01/17/2017, 11:12 PMStatusPages
works. There’s a minor annoyance that you have to cast the exception type when handling:
install(StatusPages) {
exception<ValidationException> { e ->
call.toJson((e as ValidationException).errors, HttpStatusCode.BadRequest)
}
}