Write a StatusPages plugin configuration to integrate it with the RequestValidation plugin:
install(StatusPages) {
/* your code here */ { call, cause ->
call.respond(HttpStatusCode.BadRequest, cause.reasons.joinToString())
}
}Write a StatusPages plugin configuration to integrate it with the RequestValidation plugin:
install(StatusPages) {
/* your code here */ { call, cause ->
call.respond(HttpStatusCode.BadRequest, cause.reasons.joinToString())
}
}Create a free account to access the full topic