You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2023/03/29 08:51:36 UTC

[couchdb] 01/01: add error_info clause for 410 Gone

This is an automated email from the ASF dual-hosted git repository.

rnewson pushed a commit to branch 410-gone
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 25d6e7dfce79063bd259b9b77a906ed5027a7823
Author: Robert Newson <rn...@apache.org>
AuthorDate: Wed Mar 29 09:50:55 2023 +0100

    add error_info clause for 410 Gone
---
 src/chttpd/src/chttpd.erl | 2 ++
 1 file changed, 2 insertions(+)

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) ->