You can define your own exception and throw it, li...
# ktor
o
You can define your own exception and throw it, like
constraint ?: throw BadRequestException("It's really bad")
, and then use
StatusPages
feature to handle it in a way you want it