Error retries - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Error retries

The Amazon SDKs implement automatic retry logic for requests that return error responses. You can configure the retry settings for the Amazon SDKs. For more information, refer to the documentation for the SDK that you are using.

The Amazon CLI can be configured to automatically retry some failed requests. For more information about configuring retries for the Amazon CLI, see Amazon CLI retries in the Amazon Command Line Interface User Guide.

The Amazon Query API does not support retry logic for failed requests. If you are using HTTP or HTTPS requests, you must implement retry logic in your client application.

For more information, see Error retries and exponential backoff in Amazon in the Amazon General Reference.

Regardless of whether you're using the Amazon SDKs, Amazon CLI, or Amazon Query API, you should ensure that your client application always rerties failed requests that receive server (5xx) error responses and the following client (4xx) error responses:

Error code Description HTTP status code Thrown by
ThrottlingException The number of API requests has exceeded the maximum allowed API request throttling limit for the account. 400
RequestThrottledException The number of API requests has exceeded the maximum allowed API request throttling limit for the snapshot. 400