errs

package
v0.0.0-...-3322716 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTP errors
	ErrUnauthorized   = errors.New("unauthorized")
	ErrBadRequest     = errors.New("bad request")
	DidNotReceiveCSRF = errors.New("did not receive x-csrf-token")

	// Group errors
	ErrRankNotFound     = errors.New("role is over 255 or does not exist")
	ErrRequiresCookie   = errors.New("this endpoint requires a valid cookie")
	ErrGroupDoesntExist = errors.New("group doesn't exist")
	ErrNonOkStatus      = errors.New("response status was not 200") // Only use for endpoints that normally return 200
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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