java.lang.Object
com.agentforge4j.util.retry.RetryableHttpStatuses
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 Summary
Modifier and TypeMethodDescriptionstatic booleanisRetryable(int statusCode) Returns whether the given HTTP status code is retryable.
-
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:
trueifstatusCodeis inCODES
-