You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2022/03/29 03:03:18 UTC

[rocketmq-apis] branch v2 updated: Add gateway timeout error code

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

lizhanhui pushed a commit to branch v2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git


The following commit(s) were added to refs/heads/v2 by this push:
     new be9e77e  Add gateway timeout error code
be9e77e is described below

commit be9e77e265d50457fd8b32660c14c397d7b1c813
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Tue Mar 29 03:03:08 2022 +0000

    Add gateway timeout error code
---
 apache/rocketmq/v2/definition.proto | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/apache/rocketmq/v2/definition.proto b/apache/rocketmq/v2/definition.proto
index 253605d..278bc7b 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -457,6 +457,12 @@ enum Code {
   //
   // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
   INTERNAL_SERVER_ERROR = 500;
+
+  // Code indicates that the server, while acting as a gateway or proxy,
+  // did not get a response in time from the upstream server that
+  // it needed in order to complete the request.
+  // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504
+  GATEWAY_TIMEOUT = 504;
 }
 
 message Status {