2020-05-11 21:04:11 +00:00
|
|
|
package session
|
|
|
|
|
|
|
|
import (
|
2021-03-30 18:10:02 +00:00
|
|
|
"github.com/influxdata/influxdb/v2/kit/platform/errors"
|
2020-05-11 21:04:11 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// ErrUnauthorized when a session request is unauthorized
|
2020-11-11 18:54:21 +00:00
|
|
|
// usually due to password mismatch
|
2021-03-30 18:10:02 +00:00
|
|
|
ErrUnauthorized = &errors.Error{
|
|
|
|
Code: errors.EUnauthorized,
|
2020-05-11 21:04:11 +00:00
|
|
|
Msg: "unauthorized access",
|
|
|
|
}
|
|
|
|
)
|