Hey guys,
you should add the following controllerAdvices to validation module:
BadRequestException
ConstraintViolationException
extends ResponseEntityExceptionHandler
=> overwrite handleMethodArgumentNotValid method
It would also be nice to not only provide a content-type application/json response but also a text/html response for html requests :)
Thanks!
Best,
/ben