detail in ProblemDetail will be localized Closes GH-30222

Comment From: quaff

GH-30222

I'm trying to fix the inconsistency in boot https://github.com/spring-projects/spring-boot/issues/34791

Comment From: rstoyanchev

The referenced Boot issue was closed because the issue can't be addressed on the Boot side, so I don't know what you mean. Here I'm saying that the PR in its present form can't go forward because it assumes the reason is a message code, without any option to change that assumption, also suppressing the ability to use a consistent message code as for all other exceptions.

Whatever the solution, it would need to be much more explicit about passing a message code, but again I'm wondering whether switching to the default message code would work for you.

Comment From: quaff

@rstoyanchev I updated the commit that will break nothing just enhancement, please review it.

Comment From: quaff

@rstoyanchev Could you take a look?

Comment From: rstoyanchev

Apologies for the delay. Yes, if used as a fallback it should work.

Comment From: rstoyanchev

I have moved the change down to ResponseStatusException from ErrorResponse since it is something specific to it and doesn't need to apply to any exception.