Found my answer! Thank you @dollarVar
2nd answer: How to redirect 404 errors to a page in ExpressJS?
I think you should first define all your routes and as the last route add
//The 404 Route (ALWAYS Keep this as the last route) app.get('*', function(req, res){ res.send('what???', 404); });