Is there a way to make a custom error 404, or page not found? Let me know!
Thanks!
Is there a way to make a custom error 404, or page not found? Let me know!
Thanks!
Assuming you’re using express, you can easily implement a custom 404 page by declaring all of your routes, then adding
app.get('*', (req, res) => { res.status(404).send('error 404 go back to home page'); });
at the end, above app.listen
of course