In the case of a REST call, errors can be handled using
of a controller method annotated @ControllerAdvice
@ControllerAdvice
an exception annotated @ResponseStatus
@ResponseStatus
a controller implementing the ErrorAware interface
ErrorAware
the ResponseStatusException exception
ResponseStatusException