aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-04-23 15:10:14 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-04-23 15:10:14 +0200
commit6819af35ee9c9e905a7a981e30e64662d6f0a0e9 (patch)
treed4c2d02ac246fbc392e7b3a593687d0c7dcd0578
parent5e5c654297d9ac794fce820184eac1b9f358f07a (diff)
Add new error codes
-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 {