aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-27 13:49:30 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-27 13:49:30 +0100
commit23282f058e68aac8bf29216faf90d7f27f6ad8c8 (patch)
treebfa6bdaf0bf0ec55f69c0b9bab45d3aa8d1f36d9 /errors.go
parentaefd5527a48501e882d22fd00812d2c8801e8fbe (diff)
Add errors
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/errors.go b/errors.go
new file mode 100644
index 0000000..ce04bf6
--- /dev/null
+++ b/errors.go
@@ -0,0 +1,15 @@
+package acme
+
+import "errors"
+
+var Errors = map[string]error{
+ "badCSR": errors.New("The CSR is unacceptable (e.g., due to a short key)"),
+ "badNonce": errors.New("The client sent an unacceptable anti-replay nonce"),
+ "connection": errors.New("The server could not connect to the client for DV"),
+ "dnssec": errors.New("The server could not validate a DNSSEC signed domain"),
+ "malformed": errors.New("The request message was malformed"),
+ "serverInternal": errors.New("The server experienced an internal error"),
+ "tls": errors.New("The server experienced a TLS error during DV"),
+ "unauthorized": errors.New("The client lacks sufficient authorization"),
+ "unknownHost": errors.New("The server could not resolve a domain name"),
+}