summaryrefslogtreecommitdiff
path: root/src/chttpd_db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/chttpd_db.erl')
-rw-r--r--src/chttpd_db.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chttpd_db.erl b/src/chttpd_db.erl
index 10388ff5..dc1f6df3 100644
--- a/src/chttpd_db.erl
+++ b/src/chttpd_db.erl
@@ -149,6 +149,8 @@ create_db_req(#httpd{user_ctx=UserCtx}=Req, DbName) ->
ok ->
DocUrl = absolute_uri(Req, "/" ++ couch_util:url_encode(DbName)),
send_json(Req, 201, [{"Location", DocUrl}], {[{ok, true}]});
+ {error, file_exists} ->
+ chttpd:send_error(Req, file_exists);
Error ->
throw(Error)
end.