mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
Prior to this commit, `ResponseStatusException` would resolve the "detail" part of a problem detail response from message codes only (default or custom ones). If the `reason` given as an argument to the exception was a custom message, it would be overwritten in the process. This commit ensures that we use custom reason messages when they don't resolve as message codes. Fixes gh-36984