Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як у Express обробити помилку 404?
app.use((req, res, next) => { res.error(404).send('Not Found'); });
app.use((req, res, next) => { res.json(404, 'Not Found'); });
app.use((req, res, next) => { res.send(404, 'Not Found'); });
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!