23 lines
905 B
Go
23 lines
905 B
Go
// Package errs is the shared domain error set. Transport maps these to protocol codes.
|
|
package errs
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrUnauthorized = errors.New("unauthorized")
|
|
ErrNotAuthenticated = errors.New("not authenticated")
|
|
ErrForbidden = errors.New("forbidden")
|
|
ErrNotFound = errors.New("not found")
|
|
ErrInvalidArgument = errors.New("invalid argument")
|
|
ErrDuplicate = errors.New("duplicate")
|
|
ErrRateLimited = errors.New("rate limited")
|
|
ErrBusy = errors.New("busy")
|
|
ErrInternal = errors.New("internal")
|
|
ErrFrameTooLarge = errors.New("frame too large")
|
|
ErrInvalidFrame = errors.New("invalid frame")
|
|
ErrProxyHeader = errors.New("invalid proxy protocol header")
|
|
ErrClockRewind = errors.New("snowflake clock rewind")
|
|
ErrClosed = errors.New("connection closed")
|
|
ErrOutboundDropped = errors.New("outbound dropped")
|
|
)
|