MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / createNotFoundHandler

Function createNotFoundHandler

packages/worker-utils/src/not-found-handler.ts:6–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4 * Create a Hono `app.notFound` handler that returns a 404 JSON response.
5 */
6export function createNotFoundHandler(): NotFoundHandler {
7 return c => {
8 return c.json({ error: 'Not found' }, 404);
9 };
10}

Callers 7

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
server.tsFile · 0.90

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected