Documentation
¶
Index ¶
- func Serve401(w http.ResponseWriter)
- func Serve404(w http.ResponseWriter)
- func Serve429(w http.ResponseWriter)
- func Serve500(w http.ResponseWriter)
- func Serve500WithRequest(w http.ResponseWriter, r *http.Request, reason string, err error)
- func Serve502(w http.ResponseWriter)
- func Serve503(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve401 ¶ added in v1.2.0
func Serve401(w http.ResponseWriter)
Serve401 returns a 401 error response / HTML page to the http.ResponseWriter
func Serve404 ¶
func Serve404(w http.ResponseWriter)
Serve404 returns a 404 error response / HTML page to the http.ResponseWriter
func Serve429 ¶ added in v1.46.0
func Serve429(w http.ResponseWriter)
Serve429 returns a 429 error response / HTML page to the http.ResponseWriter
func Serve500 ¶
func Serve500(w http.ResponseWriter)
Serve500 returns a 500 error response / HTML page to the http.ResponseWriter
func Serve500WithRequest ¶ added in v1.29.0
Serve500WithRequest returns a 500 error response / HTML page to the http.ResponseWriter
func Serve502 ¶
func Serve502(w http.ResponseWriter)
Serve502 returns a 502 error response / HTML page to the http.ResponseWriter
func Serve503 ¶ added in v0.6.1
func Serve503(w http.ResponseWriter)
Serve503 returns a 503 error response / HTML page to the http.ResponseWriter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.