MCPcopy Create free account
hub / github.com/dev-mastery/comments-api / notFound

Function notFound

src/controllers/not-found.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export default async function notFound () {
2 return {
3 headers: {
4 'Content-Type': 'application/json'
5 },
6 body: { error: 'Not found.' },
7 statusCode: 404
8 }
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected