I have a custom error message for authorization failure in a spring boot application, it works fine in localhost but when deployed in azure it returns like this:
{
"timestamp": TIMESTAMP,
"status": 401,
"error":"unauthorized",
"message": "unauthorized",
"path": "/testapplication"
}