diff options
Diffstat (limited to 'errors.go')
-rw-r--r-- | errors.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { |