I have a WebClient
that makes use of retries:
webClient.retryWhen(
Retry.backoff(3, Duration.ofSeconds(3)).filter(this::isRetryable)
)
private boolean isRetryable(Throwable throwable) {
//TODO how access the json body?
}
Question: how can I evaluate the json response body during retry? Because I want to base the decision not only on status code, but on error content returned.