MCPcopy Index your code
hub / github.com/chain/Core / isRetriableStatusCode

Method isRetriableStatusCode

sdk/java/src/main/java/com/chain/http/Client.java:474–481  ·  view source on GitHub ↗
(int statusCode)

Source from the content-addressed store, hash-verified

472 };
473
474 private static boolean isRetriableStatusCode(int statusCode) {
475 for (int i = 0; i < RETRIABLE_STATUS_CODES.length; i++) {
476 if (RETRIABLE_STATUS_CODES[i] == statusCode) {
477 return true;
478 }
479 }
480 return false;
481 }
482
483 private Response checkError(Response response) throws ChainException {
484 String rid = response.headers().get("Chain-Request-ID");

Callers 1

postMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected