MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / error

Function error

src/lib/run.js:363–368  ·  view source on GitHub ↗

* Sends 404 error * @param {string} id

(id)

Source from the content-addressed store, hash-verified

361 * @param {string} id
362 */
363 function error(id) {
364 webServer?.send(id, {
365 status: 404,
366 body: "File not found!",
367 });
368 }
369
370 /**
371 * Sends favicon

Callers 3

sendByExtFunction · 0.70
sendFileFunction · 0.70
sendFileContentFunction · 0.70

Calls 1

sendMethod · 0.65

Tested by

no test coverage detected