code: public static boolean isRetryableServiceException(AmazonServiceException exception) {
          return RETRYABLE_STATUS_CODES.contains(exception.getStatusCode()) ||
                 RETRYABLE_ERROR_CODES.contains(exception.getErrorCode());
      }
docs: Returns true if the specified exception is a retryable service side exception.
  
  @param exception The exception to test.
  @return True if the exception resulted from a retryable service error, otherwise false.