@gradientedge/commercetools-utils
    Preparing search index...

    Interface MethodRetryPolicy

    Per-HTTP-method retry policy override. When not set, commercetools-aligned defaults apply automatically:

    • POST/PATCH/DELETE → only retry on [502, 503, 504]; never on timeout or 500
    • All other methods → retry on [500–504] and ECONNABORTED/ETIMEDOUT
    interface MethodRetryPolicy {
        retryableErrorCodes?: string[];
        retryableStatusCodes?: number[];
    }
    Index

    Properties

    retryableErrorCodes?: string[]

    Axios error codes (e.g. 'ECONNABORTED', 'ETIMEDOUT') that trigger a retry. Default when not set: POST/PATCH/DELETE → [] — never (timeout means commercetools may have already processed it) all other methods → ['ECONNABORTED', 'ETIMEDOUT'] Note: when !error.request (request never left the client), retry is always allowed regardless — the server definitely never received the request.

    retryableStatusCodes?: number[]

    HTTP response status codes that trigger a retry for this method. Default when not set: POST/PATCH/DELETE → [502, 503, 504] — gateway errors only (commercetools never processed) all other methods → [500, 501, 502, 503, 504]