Hi LELEU,
I can explain the "response to client". Here client means the end user.
1. I have an uri which is protected with parameter client
2. user access the controller uri with jwt token
3. My custom JWT authenticator will verify the token is expired or not?
4. If expired we need to send a response/messsage to user like "token is expired"
Below mentioned points are my confusion areas,
1. If the token is expired we can throw a exception from custom JWT authenticaor
2. But Where I can catch that error and how to write the message in response
3. If I generate a custom error code / custom exception for token expire can I configure an error page in web.xml?
please check the attached screen shot also?