httperrors

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 5 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 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