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
This might be more of what you're looking for.
fs.readFile('404.html', function(error, data) { res.writeHead(404, {'content-type': 'text/html'}); res.end(data); });