Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 5394cc0

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions