aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 4aadab6..4d83e1f 100644
--- a/errors.go
+++ b/errors.go
@@ -28,6 +28,8 @@ 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")
)
// Errors
@@ -41,6 +43,8 @@ var urnErrors = map[string]error{
"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,
}
func problem(r io.Reader) error {