I see that rest call to `create database` for existing database returns 200 http status code

I ran following command multiple times and I saw that it always returns https status code 200. Whether it’s creating a NEW database or not. I am assuming when database already exists, it skips all the processing and simply return http status code 200 for existing database.

curl -XPOST 'http://localhost:8086/query' --data-urlencode 'q=CREATE DATABASE "mydb"'

Please let me know if my assumption is right. :slightly_smiling_face:


That is the documented behavior.

If you attempt to create a database that already exists, InfluxDB does nothing and does not return an error.