MCPcopy Create free account
hub / github.com/Markonis/hndl / constructor

Method constructor

src/error.ts:15–20  ·  view source on GitHub ↗
({ status, options, headers, body }: HttpErrorParams)

Source from the content-addressed store, hash-verified

13 headers?: Record<string, string>;
14
15 constructor({ status, options, headers, body }: HttpErrorParams) {
16 super(`Error ${status.code}`, options)
17 this.headers = headers;
18 this.status = status;
19 this.body = body;
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected