Сейчас ищут
Jwt Token Exception Handling. Смотреть видео: Spring Security Exception Handling HandlerExceptionResolver ProblemDetail JavaTechie, Spring Security Fix 401 Vs 403 For JWT Authentication May Be You Re Doing It Wrong, Laravel With JWT From Scratch To Exception Handling, Episode 38 Handling Spring Security Exceptions Using ControllerAdvice.