Class RetryableHttpStatuses

java.lang.Object
com.agentforge4j.util.retry.RetryableHttpStatuses

public final class RetryableHttpStatuses extends Object
The HTTP status codes that both the HTTP tool provider and the LLM retry client treat as transient and safe to retry: 429 (Too Many Requests) and the 5xx statuses that typically indicate a temporary upstream problem rather than a permanent request error.
  • Method Details

    • isRetryable

      public static boolean isRetryable(int statusCode)
      Returns whether the given HTTP status code is retryable.
      Parameters:
      statusCode - the HTTP status code
      Returns:
      true if statusCode is in CODES