In development environment it is displaying the error as
{
"type": "https://httpstatuses.com/401",
"title": "Unauthorized",
"status": 401,
"detail": "LOGIN", -- this is where I send detail of the error
"errors": [
{
error-stack
} ...
Once published, not only is the errors element missing, even the detail is also missing.
{
"type": "https://httpstatuses.com/401",
"title": "Unauthorized",
"status": 401,
"traceId": "|b1bda8d6-44744a1efb1ef714."
}
How can I always have the detail element enabled?