retry Conditions
Parameters
Specifies one or more retry conditions for the configured origin. If the failure mode during a connection attempt to the origin matches the configured retryCondition(s), the origin request will be retried up to maxAttempts times. The failoverOrigin, if configured, will then be used to satisfy the request. The default retryCondition is "CONNECT_FAILURE". retryConditions apply to this origin, and not subsequent failoverOrigin(s), which may specify their own retryConditions and maxAttempts. Valid values are:
CONNECT_FAILURE: Retry on failures connecting to origins, for example due to connection timeouts.
HTTP_5XX: Retry if the origin responds with any 5xx response code, or if the origin does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams.
GATEWAY_ERROR: Similar to 5xx, but only applies to response codes 502, 503 or 504.
RETRIABLE_4XX: Retry for retriable 4xx response codes, which include HTTP 409 (Conflict) and HTTP 429 (Too Many Requests)
NOT_FOUND: Retry if the origin returns a HTTP 404 (Not Found). This can be useful when generating video content, and the segment is not available yet.
FORBIDDEN: Retry if the origin returns a HTTP 403 (Forbidden). Each value may be one of:
CONNECT_FAILURE
,HTTP_5XX
,GATEWAY_ERROR
,RETRIABLE_4XX
,NOT_FOUND
,FORBIDDEN
.
Parameters
Specifies one or more retry conditions for the configured origin. If the failure mode during a connection attempt to the origin matches the configured retryCondition(s), the origin request will be retried up to maxAttempts times. The failoverOrigin, if configured, will then be used to satisfy the request. The default retryCondition is "CONNECT_FAILURE". retryConditions apply to this origin, and not subsequent failoverOrigin(s), which may specify their own retryConditions and maxAttempts. Valid values are:
CONNECT_FAILURE: Retry on failures connecting to origins, for example due to connection timeouts.
HTTP_5XX: Retry if the origin responds with any 5xx response code, or if the origin does not respond at all, example: disconnects, reset, read timeout, connection failure, and refused streams.
GATEWAY_ERROR: Similar to 5xx, but only applies to response codes 502, 503 or 504.
RETRIABLE_4XX: Retry for retriable 4xx response codes, which include HTTP 409 (Conflict) and HTTP 429 (Too Many Requests)
NOT_FOUND: Retry if the origin returns a HTTP 404 (Not Found). This can be useful when generating video content, and the segment is not available yet.
FORBIDDEN: Retry if the origin returns a HTTP 403 (Forbidden). Each value may be one of:
CONNECT_FAILURE
,HTTP_5XX
,GATEWAY_ERROR
,RETRIABLE_4XX
,NOT_FOUND
,FORBIDDEN
.