httperror

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadRequest

func BadRequest(w http.ResponseWriter, err error)

BadRequest logs error and sets BadRequest status

func Forbidden

func Forbidden(w http.ResponseWriter)

Forbidden sets Forbidden status

func InternalServerError

func InternalServerError(w http.ResponseWriter, err error)

InternalServerError logs error and sets InternalServerError status

func NotFound

func NotFound(w http.ResponseWriter)

NotFound sets NotFound status

func Unauthorized

func Unauthorized(w http.ResponseWriter, err error)

Unauthorized logs error and sets Unauthorized status

Types

This section is empty.

Jump to

Keyboard shortcuts

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