Remove "trace" field from ResponseStatusException
Seems the field "trace" is present if you have "spring-boot-devtools" in your dependencies. I do not see such traces in my outputs after excluding devtools.
Hope it will help.
Open application.properties
and add the below line:
server.error.include-stacktrace=never