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 retriable and the number of retry attempts has not grown larger than the configured retry limit.
Retriable status codes
A request is deemed retriable when any of the following HTTP status codes is returned:
Note that you can configure the list of retriable status codes as well. For example,
if you want to remove the 429
status code from the list of retriable 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.