From f3576f3e61651cc610deb05bfa845a3b0fb8db63 Mon Sep 17 00:00:00 2001 From: Nick Levine Date: Thu, 13 Oct 2016 11:13:08 +0200 Subject: [PATCH] doc cleanups --- doc/index.html | 50 ++++++++++++++++++++++++++------------------------ package.lisp | 3 ++- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/doc/index.html b/doc/index.html index dc186ce..4e48ee7 100644 --- a/doc/index.html +++ b/doc/index.html @@ -390,12 +390,34 @@ ZS3.

- The response to some requests — a very small proportion - — will be an error internal to the AWS server. In these - circumstances an exponential backoff - policy is recommended. + The outcome of some requests — a very small proportion + — will be an error internal to the AWS server. In these + circumstances an exponential backoff policy operates; if this + encounters too many failures then ZS3 signals an internal-error + which can be interrogated to obtain the response object, and + through that the HTTP response code and headers:

+ +
+* e
+#<ZS3:INTERNAL-ERROR @ #x1000296bc92>
+* (setf r (zs3:request-error-response e))
+#<ZS3::AMAZON-ERROR "InternalError">
+* (zs3:http-code r)
+500
+* (zs3:http-headers r)
+((:X-AMZ-REQUEST-ID . "3E20E3BAC24AB9AA")
+ (:X-AMZ-ID-2 . "80sxu4PDKtx1BWLOcSrUVWD90mMMVaMx6y9c+sz5VBGa2eAES2YlNaefn5kqRsfvrbaF+7QGNXA=")
+ (:CONTENT-TYPE . "application/xml")
+ (:TRANSFER-ENCODING . "chunked")
+ (:DATE . "Fri, 30 Sep 2016 10:10:11 GMT")
+ (:CONNECTION . "close")
+ (:SERVER . "AmazonS3"))
+* (zs3:http-phrase r)
+"Internal Server Error"
+*
+
@@ -419,26 +441,6 @@ ZS3. If a requst fails more times than permitted by *backoff*, an error will be signalled. It is the application's responsibility to handle this error.

- -
-* e
-#<ZS3::INTERNAL-ERROR @ #x1000296bc92>
-* (setf r (zs3:request-error-response e))
-#<ZS3::AMAZON-ERROR "InternalError">
-* (zs3:http-code r)
-500
-* (zs3:http-headers r)
-((:X-AMZ-REQUEST-ID . "3E20E3BAC24AB9AA")
- (:X-AMZ-ID-2 . "80sxu4PDKtx1BWLOcSrUVWD90mMMVaMx6y9c+sz5VBGa2eAES2YlNaefn5kqRsfvrbaF+7QGNXA=")
- (:CONTENT-TYPE . "application/xml")
- (:TRANSFER-ENCODING . "chunked")
- (:DATE . "Fri, 30 Sep 2016 10:10:11 GMT")
- (:CONNECTION . "close")
- (:SERVER . "AmazonS3"))
-* (zs3:http-phrase r)
-"Internal Server Error"
-*
-
diff --git a/package.lisp b/package.lisp index a78dcb1..c76255d 100644 --- a/package.lisp +++ b/package.lisp @@ -141,7 +141,8 @@ #:request-time-skewed #:operation-aborted #:no-such-lifecycle-configuration - #:restore-already-in-progress) + #:restore-already-in-progress + #:internal-error) ;; Cloudfront distribution management (:export #:status #:origin-bucket -- 2.11.4.GIT