Im working with node.js and I would like to know how to display a 404.html instead of a \"404 Not Found\" message.
This is my server.js:
var http = r
response.writeHead(404, { 'Location': 'your/404/path.html' //add other headers here... }); response.end();
or with a single line
response.redirect('your/404/path.html');