MCPcopy Index your code
hub / github.com/pmxt-dev/pmxt / ErrorWithHttpMetadata

Interface ErrorWithHttpMetadata

core/src/utils/error-mapper.ts:45–56  ·  view source on GitHub ↗

* An Error subclass with optional HTTP metadata attached by third-party SDKs.

Source from the content-addressed store, hash-verified

43 * An Error subclass with optional HTTP metadata attached by third-party SDKs.
44 */
45interface ErrorWithHttpMetadata extends Error {
46 readonly status?: number;
47 readonly statusCode?: number;
48 readonly data?: unknown;
49 readonly response?: {
50 readonly status?: number;
51 readonly statusCode?: number;
52 readonly data?: unknown;
53 readonly body?: unknown;
54 readonly headers?: Record<string, string>;
55 };
56}
57
58/** A Node.js-style error with an error code (e.g. ECONNREFUSED). */
59interface NodeError extends Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected