You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/01/17 00:19:00 UTC

[GitHub] rnewson commented on issue #1112: Misleading API HTTP Status Codes

rnewson commented on issue #1112: Misleading API HTTP Status Codes
URL: https://github.com/apache/couchdb/issues/1112#issuecomment-358152233
 
 
   That decision predates my involvement with the project. I agree that 412 is being used inappropriately as 412 is for when a request has If-Match, If-None-Match or If-Unmodified-Since headers and one of them evaluates to false. 409 would be more appropriate.
   
   OP is also correct on appropriate use of 201 vs 200 for PUT /_config. 201 is correct for resource creation, 200 for update.
   
   There are more issues with the HTTP API than these. It's unclear if we should address them given the decade or so that CouchDB has behaved this way. I doubt we'll see changes here any sooner than the planned (but not scheduled) replacement of mochiweb for something more modern.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services