Authetication Token Api url path issue

I am sending the jmix token request with url with adding some character like this
http://localhost:8080/12324vsvdoauth/token

and getting the response like this
{
“timestamp”: “2024-10-23T09:04:52.880+00:00”,
“status”: 404,
“error”: “Not Found”,
“path”: “/12324vsvdoauth/token”
} I don’t want path in the response how can I fix it ?

Hello,

Is this necessary for your security? We are sending backward the result of request anyway and we need to say that 404 and path not found.

You can override spring exception handler, i found the thread about exception handling for not found exception

Best regards,
Dmitry