### Elasticsearch Version

Doesn't matter

### Installed Plugins

_No response_

### Java Version

all

### OS Version

doesn't matter

### Problem Description

When you send a `scroll` request to the low level rest client it uses it's standard retry mechanism which catches all errors and just retries against another ES instance. The trouble with that is that you *can't* retry a scroll - it generally consumes state on the server and moves to the next page.

### Steps to Reproduce

Scroll with low level rest client.

### Logs (if relevant)

_No response_
client/rest/src/test/java/org/elasticsearch/client/RestClientMultipleHostsIntegTests.java
}
        restClient = buildRestClient(NodeSelector.ANY);
    }
    private static RestClient buildRestClient(NodeSelector nodeSelector) {
        RestClientBuilder restClientBuilder = RestClient.builder(httpHosts);
        if (pathPrefix.length() > 0) {
            restClientBuilder.setPathPrefix((randomBoolean() ? "/" : "") + pathPrefixWithoutLeadingSlash);
        }
        restClientBuilder.setNodeSelector(nodeSelector);
        return restClientBuilder.build();
    }
    private static HttpServer createHttpServer() throws Exception {
        HttpServer httpServer = MockHttpServer.createHttp(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0), 0);
        httpServer.start();
        
        for (int statusCode : getAllStatusCodes()) {
            httpServer.createContext(pathPrefix + "/" + statusCode, new ResponseHandler(statusCode));
        }
        httpServer.createContext(pathPrefix + "/wait", waitForCancelHandler);
        return httpServer;
    }
    private static WaitForCancelHandler resetWaitHandlers() {
        WaitForCancelHandler handler = new WaitForCancelHandler();
        for (HttpServer httpServer : httpServers) {
            httpServer.removeContext(pathPrefix + "/wait");
            httpServer.createContext(pathPrefix + "/wait", handler);
        }
        return handler;
    }
    private static class WaitForCancelHandler implements HttpHandler {