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

WebClientException should allow access to status code of the response [SPR-15824] #20379

spring-issuemaster opened this issue Jul 27, 2017 · 1 comment


None yet
2 participants
Copy link

commented Jul 27, 2017

Simon opened SPR-15824 and commented

The current implementation of the DefaultWebClient and its DEFAULT_STATUS_HANDLER returns a WebClientException if the status code is either a 4xx or a 5xx.

To allow custom retry logic for 5xx errors it would help to have access to the status code from the WebClientException the same way it is supported by the reactor.ipc.netty.http.client.HttpClientException

Affects: 5.0 RC3

Issue Links:

  • #20280 Convenience API for custom error handling on WebClient

Referenced from: commits 5394cc0


This comment has been minimized.

Copy link
Collaborator Author

commented Aug 2, 2017

Arjen Poutsma commented

Fixed in 5394cc0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.