MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / is_status_code_retryable

Function is_status_code_retryable

include/ai/errors.h:9–14  ·  view source on GitHub ↗

Check if an HTTP status code indicates a retryable error

Source from the content-addressed store, hash-verified

7
8/// Check if an HTTP status code indicates a retryable error
9inline bool is_status_code_retryable(int status_code) {
10 return status_code == 408 || // Request Timeout
11 status_code == 409 || // Conflict
12 status_code == 429 || // Too Many Requests
13 status_code >= 500; // Server errors (5xx)
14}
15
16/// Base class for all AI SDK errors
17class AIError : public std::runtime_error {

Callers 3

is_retryableMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected