MCPcopy
hub / github.com/unpkg/unpkg / notFound

Function notFound

packages/unpkg-files/src/lib/request-handler.ts:245–247  ·  view source on GitHub ↗
(message?: string, init?: ResponseInit)

Source from the content-addressed store, hash-verified

243}
244
245function notFound(message?: string, init?: ResponseInit): Response {
246 return new Response(message ?? "Not Found", { status: 404, ...init });
247}
248
249function parsePackagePathname(pathname: string): {
250 package: string;

Callers 1

handleRequest_Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected