diff --git a/src/libpoketube/init/pages-404-and-main.js b/src/libpoketube/init/pages-404-and-main.js index 0e04e1f7..e3baa18b 100644 --- a/src/libpoketube/init/pages-404-and-main.js +++ b/src/libpoketube/init/pages-404-and-main.js @@ -225,7 +225,8 @@ module.exports = function (app, config, renderTemplate) { if (isvld && req.params.v.length >= 10) { return res.redirect(`/watch?v=${req.params.v}`); } else { - return renderTemplate(res, req, "404.ejs", { + res.status(404) + return renderTemplate(res, req, "404.ejs", { isOldWindows, random });