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

Function statusOrElse

packages/effect/src/unstable/httpapi/HttpApiClient.ts:1034–1042  ·  view source on GitHub ↗
(response: HttpClientResponse.HttpClientResponse)

Source from the content-addressed store, hash-verified

1032}
1033
1034const statusOrElse = (response: HttpClientResponse.HttpClientResponse) =>
1035 Effect.fail(
1036 new HttpClientError.HttpClientError({
1037 reason: new HttpClientError.DecodeError({
1038 request: response.request,
1039 response
1040 })
1041 })
1042 )
1043
1044const $HttpBody = Schema.declare(HttpBody.isHttpBody)
1045

Callers

nothing calls this directly

Calls 1

failMethod · 0.45

Tested by

no test coverage detected