Feat/education api (#17168)

This commit is contained in:
Xiyuan Chen authored and GitHub committed 2025-04-01 02:45:34 -04:00
1 parent d1801b1f2e
commit 9c4be5d098
6 files changed
+162 -2

No files matched your search

+12
View File
@@ -103,6 +103,18 @@ class AccountInFreezeError(BaseHTTPException):
)
class EducationVerifyLimitError(BaseHTTPException):
error_code = "education_verify_limit"
description = "Rate limit exceeded"
code = 429
class EducationActivateLimitError(BaseHTTPException):
error_code = "education_activate_limit"
description = "Rate limit exceeded"
code = 429
class CompilanceRateLimitError(BaseHTTPException):
error_code = "compilance_rate_limit"
description = "Rate limit exceeded for downloading compliance report."