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:35 UTC

[couchdb] branch 410-gone created (now 25d6e7dfc)

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

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


      at 25d6e7dfc add error_info clause for 410 Gone

This branch includes the following new commits:

     new 25d6e7dfc add error_info clause for 410 Gone

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by rn...@apache.org.
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) ->