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

Function isTransientResponse

packages/effect/src/unstable/http/HttpClient.ts:1786–1792  ·  view source on GitHub ↗
(response: HttpClientResponse.HttpClientResponse)

Source from the content-addressed store, hash-verified

1784 Error.isHttpClientError(error) && error.reason._tag === "StatusCodeError" && error.reason.response.status === 429
1785
1786const isTransientResponse = (response: HttpClientResponse.HttpClientResponse) =>
1787 response.status === 408 ||
1788 response.status === 429 ||
1789 response.status === 500 ||
1790 response.status === 502 ||
1791 response.status === 503 ||
1792 response.status === 504

Callers 1

isTransientHttpErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected