404

Page Not Found

Sorry, that page doesn’t exist. :(

1
2
3
4
5
6
7
8
9
10
// ↓↓↓ YOU ARE HERE
exports.error404 = function(req, res) {
if (req.accepts('html')) {
fs.readFile(__dirname + config.path404, 'utf-8', function(err, page) {
res.writeHead(404, {'Content-Type': 'text/html'});
res.write(page);
res.end();
});
}
};
Share