summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2023-03-29 11:05:52 +0000
committerGitHub <noreply@github.com>2023-03-29 11:05:52 +0000
commit75ee0f0fbd3fe2d759d13d1eda1968597f4e3aec (patch)
tree01d7b590139beb8985260bf65e8b4950bb0e9f6b
parent467e14ef17dff6c552831f6f8f0f88fe93ef55a8 (diff)
parent25d6e7dfce79063bd259b9b77a906ed5027a7823 (diff)
downloadcouchdb-75ee0f0fbd3fe2d759d13d1eda1968597f4e3aec.tar.gz
Merge pull request #4503 from apache/410-gone
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) ->