Files
spring-framework/spring-web
Brian Clozel 7be3a61a14 ResponseStatusException should not override custom reason
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
2026-09-22 16:56:40 +02:00
..