Status pages

Report a typo

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())
    }
}
Enter a short text

Create a free account to access the full topic