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/06/01 02:28:51 UTC
[rocketmq-apis] branch v2 updated: Add bad request 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 806122e Add bad request code
806122e is described below
commit 806122e40c9a5a859c3bda7baa2a3b18e99101da
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Wed Jun 1 10:28:43 2022 +0800
Add bad request 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 21a6321..8ccbff2 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -391,6 +391,12 @@ enum Code {
// Return different results for entries in composite request.
MULTIPLE_RESULTS = 33;
+ // Generic code for bad request, indicating that required fields or headers are missing.
+ BAD_REQUEST = 400;
+
+ // Request is rejected due to missing of x-mq-client-id header.
+ BAD_REQUEST_CLIENT_ID = 400001;
+
// Code indicates that the server encountered an unexpected condition
// that prevented it from fulfilling the request.
// This error response is a generic "catch-all" response.