Hi,
Easy enough to successfully route any non page URL/route to the 404 page.
Without this route, node properly responds with the correct 404 (by default).
When routed to a 404 page (through a catch all), there is no 404 response though.
I’ve set it up to call a server action as below.
However, the dev I work with says this still isn’t a proper response format/code for a 404 page.
Any ideas how to do it properly? Or not able to?
In Express (coding manually) it would just be.
app.get('*', function(req, res){
res.status(404).send('formated code/message/error/html etc');
});
Thanks.
Community Page
Last updated:
Last updated: