MCPcopy Index your code
hub / github.com/Effect-TS/effect / addError

Method addError

packages/platform/src/HttpApi.ts:78–78  ·  view source on GitHub ↗

* Add an global error to the `HttpApi`.

(
    schema: Schema.Schema<A, I, RX>,
    annotations?: {
      readonly status?: number | undefined
    }
  )

Source from the content-addressed store, hash-verified

76 * Add an global error to the `HttpApi`.
77 */
78 addError<A, I, RX>(
79 schema: Schema.Schema<A, I, RX>,
80 annotations?: {
81 readonly status?: number | undefined

Callers 10

HttpApi.test.tsFile · 0.65
GroupsApiClass · 0.65
UsersApiClass · 0.65
ApiClass · 0.65
UsersApiClass · 0.65
TopLevelApiClass · 0.65
OpenApi.test.tsFile · 0.65
toHttpApiGroupFunction · 0.65
toHttpApiGroupFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected