Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15824

WebClientException should allow access to status code of the response

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.0 RC3
    • Fix Version/s: 5.0 RC4
    • Component/s: Reactive, Web:Client
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      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

        Issue Links

          Activity

          Show
          arjen.poutsma Arjen Poutsma added a comment - Fixed in https://github.com/spring-projects/spring-framework/commit/5394cc0c63471e7de8399c97ea201bbc0a4dd4d4

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              sbuettner Simon
              Last updater:
              St├ęphane Nicoll
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                15 weeks, 2 days ago