MCPcopy Create free account
hub / github.com/aptdnfapt/qwen-code-oai-proxy / toJSON

Method toJSON

src/core/errors/proxy-error.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }
35
36 toJSON(): Record<string, unknown> {
37 return {
38 type: this.type,
39 message: this.message,
40 statusCode: this.statusCode,
41 requestId: this.requestId,
42 details: this.details,
43 };
44 }
45}
46
47export function toProxyError(error: unknown, fallbackStatusCode = 500): ProxyError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected