Handle 404
This commit is contained in:
parent
51fb9df8b3
commit
cf726c800e
2 changed files with 36 additions and 1 deletions
19
templates/404.tmpl
Normal file
19
templates/404.tmpl
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue