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 2021/07/12 20:55:26 UTC

[GitHub] [couchdb] b0wter edited a comment on issue #2246: POST on /db with invalid db name returns 404 instead of 400

b0wter edited a comment on issue #2246:
URL: https://github.com/apache/couchdb/issues/2246#issuecomment-878587824


   After reading the documentation it seemed logical to me that the api should return "400 - database name invalid" because otherwise it would not have been specified in the documentation since it will never be returned. 
   
   After checking more parts of the `/{db}` documentation it seems to me that the return codes/reasons are the same for all http methods and make perfect sense for `delete/put/get` and `post` is just the odd one. 
   Usually I would not have noticed but I am writing a CouchDB client and use the documentation to define my integration tests.
   
   I'll close this issue and will put up a pr for an update of the documentation and see where that goes. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org