Merge branch '6.1.x'

This commit is contained in:
Sam Brannen 2024-08-08 17:16:19 +03:00
commit cd7c650941
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>
.retrieve()
.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);
----