jasonrogena opened a new issue #1112: Misleading API HTTP Status Codes URL: https://github.com/apache/couchdb/issues/1112 Just noticed that some status codes returned by the API are misleading: 1. Adding a configuration using [` PUT /_config/{section}/{key}`](http://docs.couchdb.org/en/2.0.0/api/server/configuration.html#put--_config-section-key) returns the status code 200 (instead of 201) when the configuration is created. 2. If a database already exists and you use ['PUT /{db}'](http://docs.couchdb.org/en/2.0.0/api/database/common.html#put--db), returns the status code 412 (instead of [409]). Not sure what motivated the project to go with these status codes. They are, however, a bit vague when used in those contexts (and hence might be misleading).
---------------------------------------------------------------- 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
