diff --git a/templates/404.html b/templates/404.html
index c3825f4..931ea9b 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -1,7 +1,9 @@
+{{ define "404" }}
404
-{{ template "header" . }}
+{{ template "head" . }}
404 — nothing like that here
+{{ end }}
diff --git a/templates/500.html b/templates/500.html
index 919f26c..5495d31 100644
--- a/templates/500.html
+++ b/templates/500.html
@@ -1,3 +1,4 @@
+{{ define "500" }}
500
{{ template "header" . }}
@@ -5,3 +6,4 @@
500 — something broke!