Fix syntax error in RestClient documentation

Closes gh-33350
This commit is contained in:
Robert Danczak 2024-08-08 15:42:37 +02:00 committed by Sam Brannen
parent a0edf129eb
commit a31945f8b6
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ String result = restClient.get() <1>
.uri("https://example.com/this-url-does-not-exist") <1> .uri("https://example.com/this-url-does-not-exist") <1>
.retrieve() .retrieve()
.onStatus(HttpStatusCode::is4xxClientError, (request, response) -> { <2> .onStatus(HttpStatusCode::is4xxClientError, (request, response) -> { <2>
throw new MyCustomRuntimeException(response.getStatusCode(), response.getHeaders()) <3> throw new MyCustomRuntimeException(response.getStatusCode(), response.getHeaders()); <3>
}) })
.body(String.class); .body(String.class);
---- ----