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

Function handleNotFound

src/server.ts:235–238  ·  view source on GitHub ↗
(res: http.ServerResponse, message: string)

Source from the content-addressed store, hash-verified

233}
234
235function handleNotFound(res: http.ServerResponse, message: string): void {
236 setCorsHeaders(res);
237 writeErrorResponse(res, 404, JSON.stringify({ error: { message, type: "not_found" } }));
238}
239
240// ---------------------------------------------------------------------------
241// /__aimock/* control API — used by aimock-pytest and other test harnesses

Callers 2

handleControlAPIFunction · 0.85
handleHttpRequestFunction · 0.85

Calls 2

setCorsHeadersFunction · 0.85
writeErrorResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…