Skip to content

Commit 9685380

Browse files
committed
Fix typos
1 parent 09b3638 commit 9685380

File tree

1 file changed

+6
-6
lines changed
  • spring-webflux/src/main/java/org/springframework/web/reactive/function/client

1 file changed

+6
-6
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -651,17 +651,17 @@ interface ResponseSpec {
651651

652652
/**
653653
* Provide a function to map specific error status codes to an error
654-
* signal to to be propagated downstream instead of the response.
655-
* <p>By default, if there are not matching status handlers, responses
654+
* signal to be propagated downstream instead of the response.
655+
* <p>By default, if there are no matching status handlers, responses
656656
* with status codes >= 400 are mapped to
657657
* {@link WebClientResponseException} which is created with
658658
* {@link ClientResponse#createException()}.
659659
* <p>To suppress the treatment of a status code as an error and process
660660
* it as a normal response, return {@code Mono.empty()} from the function.
661-
* The response will then propagate downstream for processing.
662-
* <p>To ignore an error response, handle it earlier with a
663-
* {@link ExchangeFilterFunction filter}, or add {@code onErrorResume}
664-
* downstream, for example:
661+
* The response will then propagate downstream to be processed.
662+
* <p>To ignore an error response completely, and propagate neither
663+
* response nor error, use a {@link ExchangeFilterFunction filter}, or
664+
* add {@code onErrorResume} downstream, for example:
665665
* <pre class="code">
666666
* webClient.get()
667667
* .uri("https://abc.com/account/123")

0 commit comments

Comments
 (0)