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

Function combineError

packages/effect/src/unstable/httpapi/HttpApiEndpoint.ts:1282–1287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1280 statuses.set(status, entry)
1281 }
1282 const combineError = () =>
1283 new Error(
1284 `Cannot combine a response with headers with another response for status ${status} and content-type: ${
1285 contentType || "<no content>"
1286 }`
1287 )
1288 if (HttpApiSchema.isWithHeaders(schema) || withHeadersAnnotation !== undefined) {
1289 if (entry.headerContentType !== undefined) {
1290 throw new Error(`Cannot declare multiple responses with headers for status ${status}`)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected