couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Lehnardt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-973) Return 410 when GETing a previously deleted document (rather than 404)
Date Sun, 17 Apr 2011 12:36:05 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020786#comment-13020786
] 

Jan Lehnardt commented on COUCHDB-973:
--------------------------------------

410 seems oddly/poorly specified. “What would Roy do?”

I'm siding with Paul on this one.

> Return 410 when GETing a previously deleted document (rather than 404)
> ----------------------------------------------------------------------
>
>                 Key: COUCHDB-973
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-973
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: Benjamin Young
>            Priority: Trivial
>         Attachments: 410.patch
>
>
> When you GET a nonexistent doc you get (as you should) a 404 Not Found error. However,
if you GET a document that has previously existed you also get the 404 response. It would
be more informative (IMO) for the 410 Gone response code to be used. 410 Gone's intention
is for exactly this use case, and it could have some value to CouchDB developers who need
to know the document did exist.
> CouchDB is already half way there as in the body of the 404 response it does state that
the document did exist (at least prior to compaction), so outputing a 410 (again, prior to
compaction) would hopefully be a trivial patch. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message