From fa5bb26028e841e07e86c85dd1a86d56fe366093 Mon Sep 17 00:00:00 2001
From: jnizet <jb@ninja-squad.com>
Date: Wed, 22 Sep 2021 15:02:55 +0200
Subject: [PATCH] feat: add error page

---
 .../src/main/resources/templates/error.html   | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 backend/src/main/resources/templates/error.html

diff --git a/backend/src/main/resources/templates/error.html b/backend/src/main/resources/templates/error.html
new file mode 100644
index 00000000..0f8e26fc
--- /dev/null
+++ b/backend/src/main/resources/templates/error.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+
+<html
+  xmlns:th="http://www.thymeleaf.org"
+  th:replace="~{layout/main :: layout(title=~{::title}, content=~{::main}, script=~{::script})}"
+>
+  <head>
+    <title>Error</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+  </head>
+
+  <body>
+    <main>
+      <h1 class="display-1" th:text="${status}">404</h1>
+      <p th:if="${status == 404}">Sorry, the requested page does not exist.</p>
+      <p class="lead" th:if="${status != 404}">
+        Unexpected error: <span th:text="${error}">.</span>
+      </p>
+    </main>
+  </body>
+</html>
-- 
GitLab