Throw error that respects maxRequestRetries

Hello,
With RetryRequestError, the request gets retried an infinite times until it succeeds, what error should I throw to respect the maxRequestRetries?
Was this page helpful?