Basically do your Exception handling and the package will override it, as long as you've registered this package in the config/app.php file.
This repository provides libraries that allow adding JSON Web Token (JWT) based Bearer authentication into Java Servlet applications. Support is provided for both Servlet 3 (javax.servlet), Servlet 5 ...