Enable access to an RFC 7807 ProblemDetail formatted error response from the client side #28190
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Currently
WebClientResponseException
exposes the body as abyte[]
orString
and so doesRestClientResponseException
. It would be useful if these exposed convenience methods to decode an RFC 7807 formatted response toProblemDetail
.The exceptions could be created with a
Callable<ProblemDetail>
or similar to decouple them from the details of decoding, or perhaps the decoding could be done automatically for such a response and the ProblemDetail passed in to the exception.The text was updated successfully, but these errors were encountered: