MCPcopy Create free account
hub / github.com/Effect-TS/effect / isTooManyRequestsHttpClientError

Function isTooManyRequestsHttpClientError

packages/effect/src/http/HttpClient.ts:2682–2685  ·  view source on GitHub ↗
(
  error: unknown
)

Source from the content-addressed store, hash-verified

2680 )
2681
2682const 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

Callers 1

onFailureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected