How to catch page not found in express router
问题 I would like to catch 404 page not found error in express router. I use a basic example : const express = require('express'); const app = express(); const router = express.Router(); // ROUTER MID BEFORE router.use((req, res, next) => {console.log("Router Mid => Before"); next();}); // ROUTER PAGE /BAR router.get('/bar', (req, res, next) => { console.log("Router page '/bar'"); res.send('<body><h1>Hello World</h1></body>'); next(); }); // ROUTER NOT FOUND router.get('*', (req, res, next) =>