Handle 404

This commit is contained in:
Joakim Hellsén 2024-02-03 19:03:40 +01:00
commit cf726c800e
2 changed files with 36 additions and 1 deletions

19
templates/404.tmpl Normal file
View file

@ -0,0 +1,19 @@
{{ define "content" }}
<span style="text-align: center;">
<h2>404 - Page not found</h2>
<p>Sorry, the page you are looking for does not exist.</p>
</span>
<p>
Extra information:
<ul>
<li>Host: {{ .Request.Host }}</li>
<li>Method: {{ .Request.Method }}</li>
<li>Proto: {{ .Request.Proto }}</li>
<li>RemoteAddr: {{ .Request.RemoteAddr }}</li>
<li>RequestURI: {{ .Request.RequestURI }}</li>
<li>URL: {{ .Request.URL }}</li>
<li>UserAgent: {{ .Request.UserAgent }}</li>
</ul>
{{ end }}