aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go36
1 files changed, 23 insertions, 13 deletions
diff --git a/errors.go b/errors.go
index 4d83e1f..c606bf7 100644
--- a/errors.go
+++ b/errors.go
@@ -28,23 +28,33 @@ var (
ErrTLS = errors.New("Server experienced a TLS error during DV")
ErrUnauthorized = errors.New("Client lacks sufficient authorization")
ErrUnknownHost = errors.New("Server could not resolve a domain name")
- ErrRateLimited = errors.New("The request exceeds a rate limit")
- ErrInvalidContact = errors.New("The provided contact URI for a registration was invalid")
+ ErrRateLimited = errors.New("Request exceeds a rate limit")
+ ErrInvalidContact = errors.New("Provided contact URI for a registration was invalid")
+ ErrInvalidEmail = errors.New("Provided Email for a registration was invalid")
)
// Errors
var urnErrors = map[string]error{
- "urn:acme:error:badCSR": ErrBadCSR,
- "urn:acme:error:badNonce": ErrBadNonce,
- "urn:acme:error:connection": ErrConnection,
- "urn:acme:error:dnssec": ErrDNSSEC,
- "urn:acme:error:malformed": ErrMalformed,
- "urn:acme:error:serverInternal": ErrServerInternal,
- "urn:acme:error:tls": ErrTLS,
- "urn:acme:error:unauthorized": ErrUnauthorized,
- "urn:acme:error:unknownHost": ErrUnknownHost,
- "urn:acme:error:rateLimited": ErrRateLimited,
- "urn:acme:error:invalidContact": ErrInvalidContact,
+ "urn:acme:error:connection": ErrConnection, // boulder
+ "urn:acme:error:malformed": ErrMalformed, // boulder
+ "urn:acme:error:serverInternal": ErrServerInternal, // boulder
+ "urn:acme:error:tls": ErrTLS, // boulder
+ "urn:acme:error:unauthorized": ErrUnauthorized, // boulder
+ "urn:acme:error:unknownHost": ErrUnknownHost, // boulder
+ "urn:acme:error:rateLimited": ErrRateLimited, // boulder
+ "urn:acme:error:badNonce": ErrBadNonce, // boulder
+ "urn:acme:error:invalidEmail": ErrInvalidEmail, // boulder
+ "urn:ietf:params:acme:error:badCSR": ErrBadCSR, // rfc
+ "urn:ietf:params:acme:error:badNonce": ErrBadNonce, // rfc
+ "urn:ietf:params:acme:error:connection": ErrConnection, // rfc
+ "urn:ietf:params:acme:error:dnssec": ErrDNSSEC, // rfc
+ "urn:ietf:params:acme:error:malformed": ErrMalformed, // rfc
+ "urn:ietf:params:acme:error:serverInternal": ErrServerInternal, // rfc
+ "urn:ietf:params:acme:error:tls": ErrTLS, // rfc
+ "urn:ietf:params:acme:error:unauthorized": ErrUnauthorized, // rfc
+ "urn:ietf:params:acme:error:unknownHost": ErrUnknownHost, // rfc
+ "urn:ietf:params:acme:error:rateLimited": ErrRateLimited, // rfc
+ "urn:ietf:params:acme:error:invalidContact": ErrInvalidContact, // rfc
}
func problem(r io.Reader) error {