-
Notifications
You must be signed in to change notification settings - Fork 566
/
error.go
29 lines (20 loc) · 906 Bytes
/
error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package server
import "errors"
var (
// ErrRequestMethodInvalid Request method invalid
ErrRequestMethodInvalid = errors.New("request method invalid")
// ErrResponseTypeInvalid Response type invalid
ErrResponseTypeInvalid = errors.New("response type invalid")
// ErrGrantTypeInvalid Grant type invalid
ErrGrantTypeInvalid = errors.New("grant type invalid")
// ErrClientInvalid Client invalid
ErrClientInvalid = errors.New("client invalid")
// ErrUserInvalid User invalid
ErrUserInvalid = errors.New("user invalid")
// ErrAuthorizationFormInvalid Authorization form invalid
ErrAuthorizationFormInvalid = errors.New("authorization form invalid")
// ErrAuthorizationHeaderInvalid Authorization header invalid
ErrAuthorizationHeaderInvalid = errors.New("authorization header invalid")
// ErrRefreshInvalid Refresh token invalid
ErrRefreshInvalid = errors.New("refresh token invalid")
)