From 855f61ad54cb617989a91cf161e8806be8f4358e Mon Sep 17 00:00:00 2001 From: mayiming Date: Fri, 15 Nov 2024 17:24:23 +0800 Subject: [PATCH] fix: update not_allowed_register message --- api/controllers/console/error.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/console/error.py b/api/controllers/console/error.py index e0630ca66c..96bda4fe3f 100644 --- a/api/controllers/console/error.py +++ b/api/controllers/console/error.py @@ -53,8 +53,8 @@ class AccountBannedError(BaseHTTPException): class NotAllowedRegister(BaseHTTPException): - error_code = "unauthorized" - description = "Account not found." + error_code = "not_allowed_register" + description = "Not Allowed Register" code = 400