Delete a not existing document results in HTTP status 200 - OK
--------------------------------------------------------------
Key: COUCHDB-297
URL: https://issues.apache.org/jira/browse/COUCHDB-297
Project: CouchDB
Issue Type: Bug
Components: Database Core
Affects Versions: 0.9
Environment: CouchDB Revision: 756409
Reporter: Kore Nordmann
Priority: Blocker
Fix For: 0.9
Instead of an HTTP-Error status code like 404 deletion of a non-existing
document results in HTTP 200 - OK:
$ curl -i -X PUT http://localhost:5984/some_database && curl -i -X DELETE
http://localhost:5984/some_database/not_existing
HTTP/1.1 412 Precondition Failed
Server: CouchDB/0.9.0a756409 (Erlang OTP/R12B)
Date: Fri, 20 Mar 2009 10:45:10 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 95
Cache-Control: must-revalidate
{"error":"file_exists","reason":"The database could not be created, the file
already exists."}
HTTP/1.1 200 OK
Server: CouchDB/0.9.0a756409 (Erlang OTP/R12B)
Etag: "1-754167300"
Date: Fri, 20 Mar 2009 10:45:10 GMT
Content-Type: text/plain;charset=utf-8
Content-Length: 52
Cache-Control: must-revalidate
{"ok":true,"id":"not_existing","rev":"1-754167300"}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.