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.use(express.json({ limit: "10mb" }));
|
||||||
|
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
res.status(502).render("index.ejs");
|
res.status(500).render("index.ejs");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
|
@@ -51,5 +51,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>Uuups, something went wrong 😕</h1>
|
<h1>Uuups, something went wrong 😕</h1>
|
||||||
<a href="https://status.the1s.de" class="btn">Check Status Page</a>
|
<a href="https://status.the1s.de" class="btn">Check Status Page</a>
|
||||||
|
<a onclick="window.history.back();" class="btn">Go back</a>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user