I am working in java spring project and using restful web services.For security reasons I have added oAuth spring security.In that when access token is expired,It shows 401 gateway error.I need to catch those error and respond as 200 Http Success status with json error response.For example {"error" : "Unauthorized"}.What to configure to catch 401 error.Please help me out.
Aucun commentaire:
Enregistrer un commentaire