Creates a 404 Not Found error. Use when a requested resource does not exist.
404 Not Found
Error message (default: "Not found")
"Not found"
AppError with status 404 and code NOT_FOUND
AppError
404
NOT_FOUND
if (!schedule) return next(NotFound('Schedule not found')) Copy
if (!schedule) return next(NotFound('Schedule not found'))
Creates a
404 Not Founderror. Use when a requested resource does not exist.