iilyak opened a new pull request #360: Add new return codes for database 
creation/deletion
URL: https://github.com/apache/couchdb-documentation/pull/360
 
 
   ## Overview
   
   There is a change in status codes returned by create/delete database 
operations
   
   * PUT <db>
     - Database creation returns 201 - Creation if the quorum is met
     - Database creation returns 202 - Accepted if at least one node responds ok
     - Database creation returns 500 - Error if there is no correct response 
from any node
   * DELETE <db>
     - Database deletion returns 404 - Not found if all nodes respond not found
     - Database deletion returns 200 - OK if the quorum is met and at least one 
is ok
     - Database deletion returns 202 - Accepted if the number of responses are 
bellow quorum and at least one is ok
     - Database deletion returns 500 - Error in other cases
   
   ## Testing recommendations
   
   N/A
   
   ## GitHub issue number
   
   ## Related Pull Requests
   
   - https://github.com/apache/couchdb/pull/1139 (issue 
https://github.com/apache/couchdb/issues/1136):  Error 500 deleting DB without 
quorum
   - https://github.com/apache/couchdb/pull/1127 (issue 
https://github.com/apache/couchdb/issues/603):  Error 500 when creating a db 
below quorum
   
   ## Checklist
   
   - [x] Documentation is written and is accurate;
   - [x] `make check` passes with no errors
   - [ ] Update 
[rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script)
 with the commit hash once this PR is rebased and merged
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to