Hi all,i'm reading through the couchdb wiki, and looking at
http://wiki.apache.org/couchdb/HTTP_Document_API

notably, in the section about uploading documents via PUT, there is a
comment:
To update an existing document, you also issue a *PUT* request. In this
case, the JSON body must contain a *_rev* property, which lets CouchDB know
which revision the edits are based on. If the revision of the document
currently stored in the database doesn't match, then a *409* conflict error
is returned.

and looking at the response example :

HTTP/1.1 412 Precondition Failed
Date: Thu, 17 Aug 2006 05:39:28 +0000GMT
Content-Length: 33
Connection: close

{"error":"conflict","reason":"Document update conflict."}

I'm just wondering which of the 2 of 409 or 412 it is. I don't think it's
supremely important, just something I noticed!

(First post to user@)
Rob

-- 
Robert Schonberger
[email protected]

Reply via email to