httperrors

package
v1.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 Serve414 added in v1.47.0

func Serve414(w http.ResponseWriter)

Serve414 returns a 414 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

func Serve500WithRequest(w http.ResponseWriter, r *http.Request, reason string, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL