diff options
author | Robert Newson <rnewson@apache.org> | 2023-03-29 09:50:55 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2023-03-29 09:50:55 +0100 |
commit | 25d6e7dfce79063bd259b9b77a906ed5027a7823 (patch) | |
tree | 01d7b590139beb8985260bf65e8b4950bb0e9f6b | |
parent | 467e14ef17dff6c552831f6f8f0f88fe93ef55a8 (diff) | |
download | couchdb-25d6e7dfce79063bd259b9b77a906ed5027a7823.tar.gz |
add error_info clause for 410 Gone
-rw-r--r-- | src/chttpd/src/chttpd.erl | 2 |
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) -> |