summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_httpd_db.erl')
-rw-r--r--src/couchdb/couch_httpd_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 3a8abaf3..7d744d91 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -369,7 +369,7 @@ all_docs_view(Req, Db, Keys) ->
db_doc_req(#httpd{method='DELETE'}=Req, Db, DocId) ->
case extract_header_rev(Req, couch_httpd:qs_value(Req, "rev")) of
missing_rev ->
- couch_httpd:send_error(Req, 412, <<"missing_rev">>,
+ couch_httpd:send_error(Req, 409, <<"missing_rev">>,
<<"Document rev/etag must be specified to delete">>);
RevToDelete ->
{ok, NewRev} = couch_db:delete_doc(Db, DocId, [RevToDelete]),