couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Schonberger <>
Subject Slight inconsistency in the wiki information—409 vs. 412 response
Date Thu, 05 Mar 2009 21:14:55 GMT
Hi all,i'm reading through the couchdb wiki, and looking at

notably, in the section about uploading documents via PUT, there is a
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@)

Robert Schonberger

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message