buildResponse

fun buildResponse(block: suspend (call: ApplicationCall, violations: ConstraintViolationSet) -> Unit)

Defines your own builder to generate a custom response on validation failure.

The status and contentType properties are applied by the default response builder but, once you define your own, it becomes your responsibility.