MCPcopy Create free account
hub / github.com/ShaanCoding/makeread.me / unexpectedRequest

Function unexpectedRequest

backend/src/common/middleware/errorHandler.ts:4–6  ·  view source on GitHub ↗
(_req, res)

Source from the content-addressed store, hash-verified

2import { StatusCodes } from 'http-status-codes'
3
4const unexpectedRequest: RequestHandler = (_req, res) => {
5 res.sendStatus(StatusCodes.NOT_FOUND)
6}
7
8const addErrorToRequestLog: ErrorRequestHandler = (err, _req, res, next) => {
9 res.locals.err = err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected