summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-14 20:20:06 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-14 20:20:06 +0000
commit9a30f8ba0e146c328b7d4f05fd03b125e639bfbe (patch)
treeb81eb29c9bdc12b2d60bea1d44a0ea50a8687df4 /doc
parent486166f9a8e1745726ee86201c5b2448bda33d17 (diff)
downloadtor-9a30f8ba0e146c328b7d4f05fd03b125e639bfbe.tar.gz
tor-9a30f8ba0e146c328b7d4f05fd03b125e639bfbe.zip
r14021@Kushana: nickm | 2007-08-14 16:16:58 -0400
Document http status codes svn:r11111
Diffstat (limited to 'doc')
-rw-r--r--doc/spec/dir-spec.txt24
1 files changed, 23 insertions, 1 deletions
diff --git a/doc/spec/dir-spec.txt b/doc/spec/dir-spec.txt
index 1acfb46688..bdb69e6a50 100644
--- a/doc/spec/dir-spec.txt
+++ b/doc/spec/dir-spec.txt
@@ -1505,7 +1505,29 @@ $Id$
7.2. HTTP status codes
- XXX We should write down what return codes dirservers send in what situations.
+ Tor delivers the following status codes. Some were chosen without much
+ thought; other code SHOULD NOT rely on specific status codes yet.
+
+ 200 -- the operation completed successfully
+ -- the user requested statuses or serverdescs, and none of the ones we
+ requested were found (0.2.0.4-alpha and earlier).
+
+ 304 -- the client specified an if-modified-since time, and none of the
+ requested resources have changed since that time.
+
+ 400 -- the request is malformed, or
+ -- the URL is for a malformed variation of one of the URLs we support,
+ or
+ -- the client tried to post to a non-authority, or
+ -- the authority rejected a malformed posted document, or
+
+ 404 -- the requested document was not found.
+ -- the user requested statuses or serverdescs, and none of the ones we
+ requested were found (0.2.0.5-alpha and later).
+
+ 503 -- we are declining the request in order to save bandwidth
+ -- user requested some items that we ordinarily generate or store,
+ but we do not have any available.
9. Backward compatibility and migration plans