MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / onNoMatch

Function onNoMatch

app.js:18–24  ·  view source on GitHub ↗
(request, response)

Source from the content-addressed store, hash-verified

16const cacheDefaultConfiguration = 86400;
17
18const onNoMatch = (request, response) => {
19 return response.status(404).json({
20 message: 'Page not found.',
21 type: 'not_found',
22 name: 'NotFoundError',
23 });
24};
25
26const app = (options = {}) => {
27 const corsOptions = options.cors || {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected