Skip to content
This repository

GET of deleted doc should include "reason":"deleted" #151

snej opened this Issue · 0 comments

1 participant

Jens Alfke
Jens Alfke
snej commented

In CouchDB if you GET a document that used to exist but has been deleted, you get a 404, but the JSON body of the response includes the property "reason":"deleted". This lets the client tell the situation apart from a nonexistent doc ID. CouchCocoa uses this in -[CouchRevision initWithOperation:. TouchDB should implement this.

Jens Alfke snej closed this issue from a commit
Jens Alfke Return "reason":"deleted" in response to GET of deleted doc
CouchCocoa actually depends on this, to be able to tell a deleted document
apart from a nonexistent one -- look at -[CouchRevision initWithOperation:].
Fixes #151
Jens Alfke snej closed this in a6e6ef8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.