https://kotlinlang.org logo
#ktor
Title
# ktor
o

orangy

04/20/2018, 10:57 AM
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