Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable access to an RFC 7807 ProblemDetail formatted error response from the client side #28190

Closed
Tracked by #27052
rstoyanchev opened this issue Mar 16, 2022 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Milestone

Comments

@rstoyanchev
Copy link
Contributor

rstoyanchev commented Mar 16, 2022

Currently WebClientResponseException exposes the body as a byte[] or String and so does RestClientResponseException. It would be useful if these exposed convenience methods to decode an RFC 7807 formatted response to ProblemDetail.

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.

@rstoyanchev rstoyanchev added in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement labels Mar 16, 2022
@rstoyanchev rstoyanchev added this to the 6.0.0-M4 milestone Mar 16, 2022
@rstoyanchev rstoyanchev self-assigned this Mar 16, 2022
rstoyanchev added a commit that referenced this issue May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant