I would like to handle errors like 404 and 403. In the case of 404 errors, I wrote a method like this:
@ControllerAdvice public class ExceptionInterceptor {