Add 403 + 500 error templates (todo §0); render 500 via app error handler
This commit is contained in:
16
views/403.ejs
Normal file
16
views/403.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= title %></title>
|
||||
<link rel="stylesheet" href="/public/css/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>403</h1>
|
||||
<p>You don't have access to that.</p>
|
||||
<p><a href="/">Back home</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
16
views/500.ejs
Normal file
16
views/500.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= title %></title>
|
||||
<link rel="stylesheet" href="/public/css/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<h1>500</h1>
|
||||
<p>Something went wrong on our end.</p>
|
||||
<p><a href="/">Back home</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user