MCPcopy
hub / github.com/umami-software/umami / notFound

Function notFound

src/lib/response.ts:50–55  ·  view source on GitHub ↗
(error?: Record<string, any>)

Source from the content-addressed store, hash-verified

48}
49
50export function notFound(error?: Record<string, any>) {
51 return Response.json(
52 { error: { message: 'Not found', code: 'not-found', status: 404, ...error } },
53 { status: 404 },
54 );
55}
56
57export function serverError(error?: unknown) {
58 if (error && typeof error !== 'string') {

Callers 12

POSTFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
DELETEFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
DELETEFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
GETFunction · 0.90
GETFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected