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

Function isFinalStatus

packages/platform/node/src/NodeHttpServer.ts:1110–1110  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

1108
1109// On HTTP/1.1 Node sends a 1xx as an interim response, so the client never gets a final one
1110const isFinalStatus = (status: number): boolean => status >= 200 && status <= 599
1111
1112const internalServerError = Response.empty({ status: 500 })
1113

Callers 2

writeHeadFunction · 0.85
handleCauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected