Handle 405

This commit is contained in:
Joakim Hellsén 2024-02-03 20:00:29 +01:00
commit 6f39a9f4ef
2 changed files with 34 additions and 0 deletions

19
templates/405.tmpl Normal file
View file

@ -0,0 +1,19 @@
{{ define "content" }}
<span style="text-align: center;">
<h2>405 - Method Not Allowed</h2>
<p>The method ({{ .Request.Method }}) is not allowed for the requested URL.</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 }}