b0wter opened a new issue #2246: URL: https://github.com/apache/couchdb/issues/2246
## Description Trying to add a document to a database using an invalid database name returns NOT FOUND instead of BAD REQUEST. See the [documentation](https://docs.couchdb.org/en/stable/api/database/common.html#post--db) ## Steps to Reproduce ```bash $ curl http://localhost:5984/00-this-[is]-{an}-inv@lid-name/ -X POST -H "Content-Type: application/json" -d '{"servings":4,"subtitle":"Delicious with fresh bread","title":"Fish Stew"}' {"error":"not_found","reason":"Database does not exist."} ``` ## Expected Behaviour Should return: ``` {"error":"bad_request","reason":"Invalid database name."} ``` ## Your Environment I've tried this with CouchDb version v.2.3.1. inside docker (using the official image from dockerhub). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
