(int statusCode)
| 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"); |