function isRestError(e) {
    if (e instanceof RestError) {
        return true;
    }
    return (0, error_js_1.isError)(e) && e.name === "RestError";
}
A retry strategy that retries with an exponentially increasing delay in these two cases:
- When there are errors in the underlying transport layer (e.g. DNS lookup failures).
- Or otherwise if the outgoing request fails (408, greater or equal than 500, except for 501 and 505).