Retries with Backoff
Fern SDKs will automatically retry failed requests with exponential backoff. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit.
Retryable status codes
A request is deemed retryable when any of the following HTTP status codes is returned:
Note that you can configure the list of retryable status codes as well. For example,
if you want to remove the 429
status code from the list of retryable status codes, you can do so.
Overriding the retry limit
By default, the SDK will retry a failed request up to 2 times. SDK users can override the global default retry limit when instantiating the client.
Itβs also possible to override the retry limit on a per-request basis.