mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
17 lines
384 B
Go
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")
|
|
)
|