

# StatusCodes
<a name="API_StatusCodes"></a>

A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.

## Contents
<a name="API_StatusCodes_Contents"></a>

 ** Items **   <a name="cloudfront-Type-StatusCodes-Items"></a>
The items (status codes) for an origin group.  
Type: Array of integers  
Array Members: Minimum number of 1 item.  
Required: Yes

 ** Quantity **   <a name="cloudfront-Type-StatusCodes-Quantity"></a>
The number of status codes.  
Type: Integer  
Required: Yes

## See Also
<a name="API_StatusCodes_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/cloudfront-2020-05-31/StatusCodes) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/cloudfront-2020-05-31/StatusCodes) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/cloudfront-2020-05-31/StatusCodes) 