Files
opencloud/proxy/pkg/middleware/errors.go
2020-11-17 17:10:14 +01:00

17 lines
384 B
Go

package middleware
import (
"errors"
)
var (
// ErrInvalidToken is returned when the request token is invalid.
ErrInvalidToken = errors.New("invalid or missing token")
// ErrUnauthorized is returned if the request is not authorized
ErrUnauthorized = errors.New("unauthorized")
// ErrInternal is returned if something went wrong
ErrInternal = errors.New("internal error")
)