Exception message not included in response when throwing ResponseStatusException in Spring Boot

This behavior has changed with Spring Boot 2.3 and is intentional. See release notes for details.

Setting server.error.include-message=always in the application.properties resolves this issue.

Leave a Comment