P E N C I L
Login
Exception Handler

https://www.baeldung.com/exception-handling-for-rest-with-spring

1. @Controller, add @ExceptionHandler to method

2. @ResponseStatus(value = HttpStatus.NOT_FOUND) to the Exception class

3. @ControllerAdvice with @ExceptionHandler

4. ResponseStatusException with Spring 5