Versions in this module Expand all Collapse all v0 v0.7.0 Feb 8, 2026 v0.6.0 Feb 7, 2026 Changes in this version + var APIErrForbidden = &Error + var APIErrInternal = &Error + var APIErrMethodNotAllowed = &Error + var APIErrNoPermission = &Error + var APIErrNoSession = &Error + var APIErrNotFound = &Error + var ErrConflict = errors.New("conflict") + var ErrInternal = errors.New("internal error") + var ErrMethod = errors.New("method not allowed") + var ErrNoPermission = errors.New("you do not have permission to do that") + var ErrNoSession = errors.New("no session found") + var ErrNotFound = errors.New("not found") + func ErrorHandler(w http.ResponseWriter, _ *http.Request, err error) + func RequestErrorHandler(w http.ResponseWriter, r *http.Request, err error) + func ResponseErrorHandler(w http.ResponseWriter, r *http.Request, err error) + type Error struct + Errors []string + StatusCode int + func New(statusCode int, message string) *Error + func (ae *Error) AsJSON() []byte + func (ae *Error) Error() string