( error: unknown )
| 2680 | ) |
| 2681 | |
| 2682 | const isTooManyRequestsHttpClientError = ( |
| 2683 | error: unknown |
| 2684 | ): error is Error.HttpClientError & { readonly reason: Error.StatusCodeError } => |
| 2685 | Error.isHttpClientError(error) && error.reason._tag === "StatusCodeError" && error.reason.response.status === 429 |
| 2686 | |
| 2687 | /** |
| 2688 | * Returns `true` for a response whose status `retryTransient` retries by |