-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrors.go
23 lines (18 loc) · 951 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package recaptcha
import (
"errors"
)
// https://developers.google.com/recaptcha/docs/verify#error_code_reference
var (
// missing-input-secret The secret parameter is missing.
ErrMissingInputSecret = errors.New("the secret parameter is missing")
// invalid-input-secret The secret parameter is invalid or malformed.
ErrMissingInputResponse = errors.New("the response parameter is missing")
// invalid-input-response The response parameter is invalid or malformed.
ErrInvalidInputResponse = errors.New("the response parameter is invalid or malformed")
// bad-request The request is invalid or malformed
ErrBadRequest = errors.New("the request is invalid or malformed")
// timeout-or-duplicate The response is no longer valid: either is too old or has been used previously.
ErrTimeoutOrDuplicate = errors.New("the response is no longer valid: either is too old or has been used previously")
ErrUnknown = errors.New("unknown error")
)