aboutsummaryrefslogtreecommitdiff
path: root/errors.go
blob: bbfeea38f31ba3972077bfd6c0843e0dd4b916a2 (plain)
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
package acme

import "errors"

var (
	errBadCSR         = errors.New("The CSR is unacceptable (e.g., due to a short key)")
	errBadNonce       = errors.New("The client sent an unacceptable anti-replay nonce")
	errConnection     = errors.New("The server could not connect to the client for DV")
	errDnssec         = errors.New("The server could not validate a DNSSEC signed domain")
	errMalformed      = errors.New("The request message was malformed")
	errServerInternal = errors.New("The server experienced an internal error")
	errTLS            = errors.New("The server experienced a TLS error during DV")
	errUnauthorized   = errors.New("The client lacks sufficient authorization")
	errUnknownHost    = errors.New("The server could not resolve a domain name")
)

// Errors
var Errors = map[string]error{
	"badCSR":         errBadCSR,
	"badNonce":       errBadNonce,
	"connection":     errConnection,
	"dnssec":         errDnssec,
	"malformed":      errMalformed,
	"serverInternal": errServerInternal,
	"tls":            errTLS,
	"unauthorized":   errUnauthorized,
	"unknownHost":    errUnknownHost,
}