diff options
author | Alexander Shorin <kxepal@apache.org> | 2015-10-12 18:09:29 +0300 |
---|---|---|
committer | Alexander Shorin <kxepal@apache.org> | 2015-10-12 18:23:43 +0300 |
commit | 747144ee259b1fe084ee041f783936a7ee1cf2de (patch) | |
tree | 0d60224218f0d0a0b75d5cc84dd4c966e74c0f92 | |
parent | d0a9b722485639fc43ccbfc4267f3a2dd9aa9d5a (diff) | |
download | couchdb-747144ee259b1fe084ee041f783936a7ee1cf2de.tar.gz |
Return HTTP 200 on GET
-rw-r--r-- | src/setup_httpd.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/setup_httpd.erl b/src/setup_httpd.erl index f84112b21..32c610470 100644 --- a/src/setup_httpd.erl +++ b/src/setup_httpd.erl @@ -31,13 +31,13 @@ handle_setup_req(#httpd{method='GET'}=Req) -> ok = chttpd:verify_is_server_admin(Req), case setup:is_cluster_enabled() of no -> - chttpd:send_json(Req, 201, {[{state, cluster_disabled}]}); + chttpd:send_json(Req, 200, {[{state, cluster_disabled}]}); ok -> case setup:has_cluster_system_dbs() of no -> - chttpd:send_json(Req, 201, {[{state, cluster_enabled}]}); + chttpd:send_json(Req, 200, {[{state, cluster_enabled}]}); ok -> - chttpd:send_json(Req, 201, {[{state, cluster_finished}]}) + chttpd:send_json(Req, 200, {[{state, cluster_finished}]}) end end. |