MCPcopy Create free account
hub / github.com/MemTensor/MemOS / writeNotFound

Function writeNotFound

apps/memos-local-plugin/server/middleware/io.ts:54–56  ·  view source on GitHub ↗
(res: ServerResponse)

Source from the content-addressed store, hash-verified

52}
53
54export function writeNotFound(res: ServerResponse): void {
55 writeJson(res, 404, { error: { code: "not_found", message: "not found" } });
56}
57
58export function writeMethodNotAllowed(res: ServerResponse, method: string): void {
59 writeJson(res, 405, {

Callers 2

dispatchFunction · 0.85
tryServeFunction · 0.85

Calls 1

writeJsonFunction · 0.85

Tested by

no test coverage detected