summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2023-03-29 09:50:55 +0100
committerRobert Newson <rnewson@apache.org>2023-03-29 09:50:55 +0100
commit25d6e7dfce79063bd259b9b77a906ed5027a7823 (patch)
tree01d7b590139beb8985260bf65e8b4950bb0e9f6b
parent467e14ef17dff6c552831f6f8f0f88fe93ef55a8 (diff)
downloadcouchdb-25d6e7dfce79063bd259b9b77a906ed5027a7823.tar.gz
add error_info clause for 410 Gone
-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 f395a236e..03f93ef0e 100644
--- a/src/chttpd/src/chttpd.erl
+++ b/src/chttpd/src/chttpd.erl
@@ -1100,6 +1100,8 @@ error_info({error, <<"endpoint has an invalid url">> = Reason}) ->
{400, <<"invalid_replication">>, Reason};
error_info({error, <<"proxy has an invalid url">> = Reason}) ->
{400, <<"invalid_replication">>, Reason};
+error_info({gone, Reason}) ->
+ {410, <<"gone">>, Reason};
error_info({missing_stub, Reason}) ->
{412, <<"missing_stub">>, Reason};
error_info(request_entity_too_large) ->