From 6819af35ee9c9e905a7a981e30e64662d6f0a0e9 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 23 Apr 2016 15:10:14 +0200 Subject: Add new error codes --- errors.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'errors.go') 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 { -- cgit v1.2.3