From 9685380334ffd40623feed4d1e89b9eff03f5dce Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Fri, 20 Mar 2020 21:14:56 +0000 Subject: [PATCH] Fix typos --- .../web/reactive/function/client/WebClient.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java index 6c7c22814f..6ba4870732 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/client/WebClient.java @@ -651,17 +651,17 @@ public interface WebClient { /** * Provide a function to map specific error status codes to an error - * signal to to be propagated downstream instead of the response. - *

By default, if there are not matching status handlers, responses + * signal to be propagated downstream instead of the response. + *

By default, if there are no matching status handlers, responses * with status codes >= 400 are mapped to * {@link WebClientResponseException} which is created with * {@link ClientResponse#createException()}. *

To suppress the treatment of a status code as an error and process * it as a normal response, return {@code Mono.empty()} from the function. - * The response will then propagate downstream for processing. - *

To ignore an error response, handle it earlier with a - * {@link ExchangeFilterFunction filter}, or add {@code onErrorResume} - * downstream, for example: + * The response will then propagate downstream to be processed. + *

To ignore an error response completely, and propagate neither + * response nor error, use a {@link ExchangeFilterFunction filter}, or + * add {@code onErrorResume} downstream, for example: *

 		 * webClient.get()
 		 *     .uri("https://abc.com/account/123")