Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 1a6f05d

Browse files
committed
Add 429 to list of retryable HTTP status codes
1 parent a30f622 commit 1a6f05d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Platform 3.28
1313

1414
- Remote errors, when detected, are now notified to async applications.
1515

16+
* HTTP Client
17+
18+
We added 429 to the list of HTTP status codes that allow retrying requests.
19+
1620
Platform 3.27
1721

1822
* Java version support

http-client/src/main/java/com/proofpoint/http/client/balancing/RetryingResponseHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
final class RetryingResponseHandler<T, E extends Exception>
3131
implements ResponseHandler<T, RetryException>
3232
{
33-
private static final Set<Integer> RETRYABLE_STATUS_CODES = Set.of(408, 499, 500, 502, 503, 504, 598, 599);
33+
private static final Set<Integer> RETRYABLE_STATUS_CODES = Set.of(408, 429, 499, 500, 502, 503, 504, 598, 599);
3434
private static final Logger log = Logger.get(RetryingResponseHandler.class);
3535
private final ResponseHandler<T, E> innerHandler;
3636
private final RetryBudget retryBudget;

http-client/src/test/java/com/proofpoint/http/client/balancing/AbstractTestBalancingHttpClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ public Object[][] getRetryStatus()
292292
{
293293
return new Object[][] {
294294
new Object[] {408},
295+
new Object[] {429},
295296
new Object[] {499},
296297
new Object[] {500},
297298
new Object[] {502},

0 commit comments

Comments
 (0)