Versions in this module Expand all Collapse all v1 v1.7.2 May 20, 2020 v1.7.1 May 18, 2020 Changes in this version + var ErrForbidden = errors.New("Forbidden") + var ErrInvalidToken = errors.New("Invalid or missing token") + var ErrNotFound = errors.New("Not Found") + var ErrNotImplemented = errors.New("Not Implemented") + var ErrUnauthorized = errors.New("Unauthorized") + func BadRequest(w http.ResponseWriter, err error) + func BadRequestf(w http.ResponseWriter, format string, a ...interface{}) + func ErrorCode(w http.ResponseWriter, err error, status int) + func Forbidden(w http.ResponseWriter, err error) + func InternalError(w http.ResponseWriter, err error) + func InternalErrorf(w http.ResponseWriter, format string, a ...interface{}) + func JSON(w http.ResponseWriter, v interface{}, status int) + func NotFound(w http.ResponseWriter, err error) + func NotFoundf(w http.ResponseWriter, format string, a ...interface{}) + func NotImplemented(w http.ResponseWriter, err error) + func Unauthorized(w http.ResponseWriter, err error)