Skip to content

Commit

Permalink
explain http error codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Aguilera <jorge@edn.es>
  • Loading branch information
jagedn committed Sep 23, 2024
1 parent 85540b9 commit 29d4fa0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ class FailsafeExecutor {
.build()
}

/*
408 Request Timeout
429 Too Many Requests
500 Internal Server Error
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
*/
final private static List<Integer> RETRY_CODES = List.of(408, 429, 500, 502, 503, 504)

protected <T> T apply(CheckedSupplier<T> action) {
Expand Down

0 comments on commit 29d4fa0

Please sign in to comment.