Documentation
¶
Overview ¶
Package status provides all the error pages like 404, 405, 500, 501, and the page when a CSRF token is invalid.
Index ¶
- func Error404(w http.ResponseWriter, r *http.Request)
- func Error405(allowedMethods string) func(w http.ResponseWriter, r *http.Request)
- func Error500(w http.ResponseWriter, r *http.Request)
- func Error501(w http.ResponseWriter, r *http.Request)
- func InvalidToken(w http.ResponseWriter, r *http.Request)
- func Load()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error405 ¶
func Error405(allowedMethods string) func(w http.ResponseWriter, r *http.Request)
Error405 - Method Not Allowed.
func Error500 ¶
func Error500(w http.ResponseWriter, r *http.Request)
Error500 - Internal Server Error.
func InvalidToken ¶
func InvalidToken(w http.ResponseWriter, r *http.Request)
InvalidToken shows a page in response to CSRF attacks.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.