Files
ocis/proxy/pkg/middleware/errors.go
T

16 lines
384 B
Go
Raw Normal View History

package middleware
import (
"errors"
)
var (
2020-11-16 14:01:32 +01:00
// ErrInvalidToken is returned when the request token is invalid.
ErrInvalidToken = errors.New("invalid or missing token")
2020-11-16 14:01:32 +01:00
// ErrUnauthorized is returned if the request is not authorized
ErrUnauthorized = errors.New("unauthorized")
2020-11-16 14:01:32 +01:00
// ErrInternal is returned if something went wrong
ErrInternal = errors.New("internal error")
)