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 02:15:39 UTC
[rocketmq-apis] branch v2 updated: Change code field name
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 bcefe4f Change code field name
bcefe4f is described below
commit bcefe4f3e1522923b54159cc31bfd7a8a5753bf7
Author: Li Zhanhui <li...@gmail.com>
AuthorDate: Tue Mar 29 02:15:31 2022 +0000
Change code field name
---
apache/rocketmq/v2/definition.proto | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/apache/rocketmq/v2/definition.proto b/apache/rocketmq/v2/definition.proto
index 7e0be63..253605d 100644
--- a/apache/rocketmq/v2/definition.proto
+++ b/apache/rocketmq/v2/definition.proto
@@ -410,11 +410,15 @@ enum Code {
// Message body size exceeds the threshold.
MESSAGE_BODY_TOO_LARGE = 10;
- // User does not have the permission to operate. Forbidden.
- ACCESS_DENIED = 11;
-
- // Identity could not be recognized.
- AUTHENTICATION_REQUIRED = 12;
+ // User does not have the permission to operate.
+ // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403
+ FORBIDDEN = 403;
+
+ // Code indicates that the client request has not been completed
+ // because it lacks valid authentication credentials for the
+ // requested resource.
+ // See https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
+ UNAUTHORIZED = 401;
// Topic resource does not exist.
TOPIC_NOT_FOUND = 13;