Fix HTTP status code in root route and add "Go back" button to error page

This commit is contained in:
2025-09-25 16:58:04 +02:00
parent 77d51fd243
commit 91caf1c3e5
2 changed files with 2 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ app.set("view engine", "ejs");
app.use(express.json({ limit: "10mb" }));
app.get("/", (req, res) => {
res.status(502).render("index.ejs");
res.status(500).render("index.ejs");
});
app.listen(port, () => {