app.use((req, res, next) => { res.status(404).send('<h1>404!! Page not found</h1>'); }) // Note that there is not path and the status method that define the status code of the respond.