summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_httpd.erl')
-rw-r--r--src/couchdb/couch_httpd.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl
index 535a864c..56f651d8 100644
--- a/src/couchdb/couch_httpd.erl
+++ b/src/couchdb/couch_httpd.erl
@@ -371,7 +371,7 @@ send_error(Req, not_found) ->
send_error(Req, {not_found, Reason}) ->
send_error(Req, 404, <<"not_found">>, Reason);
send_error(Req, conflict) ->
- send_error(Req, 412, <<"conflict">>, <<"Document update conflict.">>);
+ send_error(Req, 409, <<"conflict">>, <<"Document update conflict.">>);
send_error(Req, {forbidden, Msg}) ->
send_json(Req, 403,
{[{<<"error">>, <<"forbidden">>},
@@ -397,7 +397,7 @@ send_error(Req, {user_error, {Props}}) ->
{[{<<"error">>, proplists:get_value(<<"error">>, Props)},
{<<"reason">>, proplists:get_value(<<"reason">>, Props)}]});
send_error(Req, file_exists) ->
- send_error(Req, 409, <<"file_exists">>, <<"The database could not be "
+ send_error(Req, 412, <<"file_exists">>, <<"The database could not be "
"created, the file already exists.">>);
send_error(Req, {Error, Reason}) ->
send_error(Req, 500, Error, Reason);