MCPcopy Create free account
hub / github.com/CopilotKit/aimock / errorResponse

Function errorResponse

src/jsonrpc.ts:21–27  ·  view source on GitHub ↗
(
  code: number,
  message: string,
  id: string | number | null = null,
)

Source from the content-addressed store, hash-verified

19}
20
21function errorResponse(
22 code: number,
23 message: string,
24 id: string | number | null = null,
25): JsonRpcResponse {
26 return { jsonrpc: "2.0", id, error: { code, message } };
27}
28
29function isObject(val: unknown): val is Record<string, unknown> {
30 return typeof val === "object" && val !== null && !Array.isArray(val);

Callers 2

processOneFunction · 0.85
createJsonRpcDispatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…