summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-07-14 02:31:09 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-07-14 12:14:13 -0400
commit23127c121278cfaddb112df65176c0c84dd4513c (patch)
tree639f66e7ee845c51d6c84b826aa2abb5aa089b76
parent03f265709989d68f9493c05c27d36778274e6bbf (diff)
downloadcouchdb-23127c121278cfaddb112df65176c0c84dd4513c.tar.gz
Make replication filter fetch error for _replicate return a 404
Previously it returned a 500 error.
-rw-r--r--src/chttpd/src/chttpd.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chttpd/src/chttpd.erl b/src/chttpd/src/chttpd.erl
index 3fcb51faf..ea92e0397 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -844,6 +844,8 @@ error_info(not_found) ->
{404, <<"not_found">>, <<"missing">>};
error_info({not_found, Reason}) ->
{404, <<"not_found">>, Reason};
+error_info({filter_fetch_error, Reason}) ->
+ {404, <<"not_found">>, Reason};
error_info({not_acceptable, Reason}) ->
{406, <<"not_acceptable">>, Reason};
error_info(conflict) ->