-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
32 lines (22 loc) · 1.31 KB
/
Copy patherrors.go
File metadata and controls
32 lines (22 loc) · 1.31 KB
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
30
31
32
package httpsig
import (
"codeberg.org/reiver/go-erorr"
)
const (
// ErrAlgorithmNotSupported is returned when the specified algorithm is not supported.
ErrAlgorithmNotSupported = erorr.Error("httpsig: algorithm not supported")
// ErrDigestMismatch is returned when the Digest or Content-Digest header does not match the body.
ErrDigestMismatch = erorr.Error("httpsig: digest mismatch")
// ErrKeyNotFound is returned when a KeyLookup cannot find a key for the given key ID.
ErrKeyNotFound = erorr.Error("httpsig: key not found")
// ErrKeyTypeInvalid is returned when the provided key is not the right type for the algorithm.
ErrKeyTypeInvalid = erorr.Error("httpsig: invalid key type")
// ErrRequiredHeaderMissing is returned when a header that must be signed is not present on the message.
ErrRequiredHeaderMissing = erorr.Error("httpsig: missing required header")
// ErrSignatureExpired is returned when a signature's timestamp is outside the acceptable window.
ErrSignatureExpired = erorr.Error("httpsig: signature expired")
// ErrSignatureNotFound is returned when no signature is present on a message.
ErrSignatureNotFound = erorr.Error("httpsig: signature not found")
// ErrSignatureInvalid is returned when a signature fails verification.
ErrSignatureInvalid = erorr.Error("httpsig: signature invalid")
)