With a ContractRoute, is it possible to customize ...
# http4k
c
With a ContractRoute, is it possible to customize the response given to clients if they submit a request not matching what I expect? For example, if the contract says the request must be JSON and have a field
name
and
value
and a client submits an empty body...I'd like to provide a standard "error" response to them, however, my handler doesn't get invoked for me to do that (b/c the framework sees the body isn't what i expect)