Documentation ¶
Index ¶
- func BadRequest(w http.ResponseWriter, err error)
- func ErrorStatus(err error) (status int, message string)
- func Forbidden(w http.ResponseWriter)
- func FromResponse(resp *http.Response, err error) error
- func FromStatus(status int, err error) error
- func HandleError(w http.ResponseWriter, err error) bool
- func InternalServerError(w http.ResponseWriter, err error)
- func NotFound(w http.ResponseWriter)
- func Unauthorized(w http.ResponseWriter, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(w http.ResponseWriter, err error)
func ErrorStatus ¶
func Forbidden ¶
func Forbidden(w http.ResponseWriter)
func FromStatus ¶ added in v4.46.2
func HandleError ¶
func HandleError(w http.ResponseWriter, err error) bool
func InternalServerError ¶
func InternalServerError(w http.ResponseWriter, err error)
func NotFound ¶
func NotFound(w http.ResponseWriter)
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.