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