diff options
-rw-r--r-- | src/couch_replicator/src/couch_replicator_api_wrap.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/couch_replicator/src/couch_replicator_api_wrap.erl b/src/couch_replicator/src/couch_replicator_api_wrap.erl index a0d08d777..91d7d7ae5 100644 --- a/src/couch_replicator/src/couch_replicator_api_wrap.erl +++ b/src/couch_replicator/src/couch_replicator_api_wrap.erl @@ -80,6 +80,8 @@ db_open(#httpdb{} = Db1, _Options, Create) -> send_req(Db, [{method, put}], fun(401, _, _) -> throw({unauthorized, ?l2b(db_uri(Db))}); + (403, _, _) -> + throw({forbidden, ?l2b(db_uri(Db))}); (_, _, _) -> ok end) @@ -100,6 +102,8 @@ db_open(#httpdb{} = Db1, _Options, Create) -> throw({db_not_found, ?l2b(db_uri(Db))}); (401, _, _) -> throw({unauthorized, ?l2b(db_uri(Db))}); + (403, _, _) -> + throw({forbidden, ?l2b(db_uri(Db))}); (_, _, _) -> throw({db_not_found, ?l2b(db_uri(Db))}) end) |