Skip to content

Commit 4f46fd6

Browse files
authored
Merge pull request #275 from lowcoder-org/return_proper_code
Return HTTP 429 - too many requests when rate limit reached
2 parents baeede9 + 887cbe2 commit 4f46fd6

File tree

1 file changed

+1
-1
lines changed
  • server/api-service/lowcoder-sdk/src/main/java/org/lowcoder/sdk/exception

1 file changed

+1
-1
lines changed

server/api-service/lowcoder-sdk/src/main/java/org/lowcoder/sdk/exception/BizError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public enum BizError {
1919
INFRA_REDIS_TIMEOUT(500, 5006),
2020
INFRA_MONGO_TIMEOUT(500, 5007),
2121
INVALID_PERMISSION_OPERATION(500, 5008),
22-
REQUEST_THROTTLED(500, 5009),
22+
REQUEST_THROTTLED(429, 5009),
2323
SERVER_NOT_READY(503, 5010),
2424
REDIRECT(302, 5011),
2525

0 commit comments

Comments
 (0)