Fix HTTP status code in root route and add "Go back" button to error page
This commit is contained in:
@@ -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, () => {
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user