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, () => {

View File

@@ -51,5 +51,6 @@
<body>
<h1>Uuups, something went wrong 😕</h1>
<a href="https://status.the1s.de" class="btn">Check Status Page</a>
<a onclick="window.history.back();" class="btn">Go back</a>
</body>
</html>