diff --git a/note_kfet/templates/400.html b/note_kfet/templates/400.html
index 35606525f45e6862b9c3a41a244c89adc825466d..89d7ba85b931b308bc6408fcfc229efda05789a8 100644
--- a/note_kfet/templates/400.html
+++ b/note_kfet/templates/400.html
@@ -1,8 +1,22 @@
 {% extends "base.html" %}
-
+{% comment %}
+SPDX-License-Identifier: GPL-3.0-or-later
+{% endcomment %}
 {% load i18n %}
 
 {% block content %}
-    <h1>{% trans "Bad request" %}</h1>
-    {% blocktrans %}Sorry, your request was bad. Don't know what could be wrong. An email has been sent to webmasters with the details of the error. You can now drink a coke.{% endblocktrans %}
+<div class="card text-white bg-secondary">
+    <h3 class="card-header text-center">
+        {% trans "Bad request" %}
+    </h3>
+    <div class="card-body">
+        <p>
+            {% blocktrans trimmed %}
+            Sorry, your request was bad. Don't know what could be wrong.
+            An email has been sent to webmasters with the details of the error.
+            You can now drink a coke.
+            {% endblocktrans %}
+        </p>
+    </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/note_kfet/templates/403.html b/note_kfet/templates/403.html
index 317865f241bb7ce5a1bf97eb3434f2a7b8abc4c7..5256e32d6c2f3d141e207e344ecfc0427cdd7cf8 100644
--- a/note_kfet/templates/403.html
+++ b/note_kfet/templates/403.html
@@ -1,13 +1,19 @@
 {% extends "base.html" %}
-
+{% comment %}
+SPDX-License-Identifier: GPL-3.0-or-later
+{% endcomment %}
 {% load i18n %}
 
 {% block content %}
-    <h1>{% trans "Permission denied" %}</h1>
-    {% blocktrans %}You don't have the right to perform this request.{% endblocktrans %}
-    {% if exception %}
-        <div>
-            {% trans "Exception message:" %} {{ exception }}
-        </div>
-    {% endif %}
+<div class="card text-white bg-secondary">
+    <h3 class="card-header text-center">
+        {% trans "Permission denied" %}
+    </h3>
+    <div class="card-body">
+        <p>{% blocktrans %}You don't have the right to perform this request.{% endblocktrans %}</p>
+        {% if exception %}
+        <p>{% trans "Exception message:" %} {{ exception }}</p>
+        {% endif %}
+    </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/note_kfet/templates/404.html b/note_kfet/templates/404.html
index 8477f914d72460f4faae2d8176feac17362d163b..03b816584d7cc80986b34d21d04e9f5cb9b22618 100644
--- a/note_kfet/templates/404.html
+++ b/note_kfet/templates/404.html
@@ -1,13 +1,23 @@
 {% extends "base.html" %}
-
+{% comment %}
+SPDX-License-Identifier: GPL-3.0-or-later
+{% endcomment %}
 {% load i18n %}
 
 {% block content %}
-    <h1>{% trans "Page not found" %}</h1>
-    {% blocktrans %}The requested path <code>{{ request_path }}</code> was not found on the server.{% endblocktrans %}
-    {% if exception != "Resolver404" %}
-        <div>
-            {% trans "Exception message:" %} {{ exception }}
-        </div>
-    {% endif %}
+<div class="card text-white bg-secondary">
+    <h3 class="card-header text-center">
+        {% trans "Page not found" %}
+    </h3>
+    <div class="card-body">
+        <p>
+            {% blocktrans trimmed %}
+            The requested path <code>{{ request_path }}</code> was not found on the server.
+            {% endblocktrans %}
+        </p>
+        {% if exception != "Resolver404" %}
+        <p>{% trans "Exception message:" %} {{ exception }}</p>
+        {% endif %}
+    </div>
+</div>
 {% endblock %}
\ No newline at end of file
diff --git a/note_kfet/templates/500.html b/note_kfet/templates/500.html
index 50b62bc2a080aea5111a69d96045b35bb45abff5..fb7d1c69435c8af0b00fc788266db91286da4458 100644
--- a/note_kfet/templates/500.html
+++ b/note_kfet/templates/500.html
@@ -1,8 +1,22 @@
 {% extends "base.html" %}
-
+{% comment %}
+SPDX-License-Identifier: GPL-3.0-or-later
+{% endcomment %}
 {% load i18n %}
 
 {% block content %}
-    <h1>{% trans "Server error" %}</h1>
-    {% blocktrans %}Sorry, an error occurred when processing your request. An email has been sent to webmasters with the detail of the error, and this will be fixed soon. You can now drink a beer.{% endblocktrans %}
+<div class="card text-white bg-secondary">
+    <h3 class="card-header text-center">
+        {% trans "Server error" %}
+    </h3>
+    <div class="card-body">
+        <p>
+            {% blocktrans trimmed %}
+            Sorry, an error occurred when processing your request.
+            An email has been sent to webmasters with the detail of the error,
+            and this will be fixed soon. You can now drink a beer.
+            {% endblocktrans %}
+        </p>
+    </div>
+</div>
 {% endblock %}
\ No newline at end of file