retry requests with HTTP status 429

This commit is contained in:
Will Taylor authored and GitHub committed 2024-07-23 12:41:16 -05:00
1 parent 699c1ec589
commit a4055375f6
717 files changed
+1646 -36

No files matched your search

@@ -24,6 +24,7 @@ enum HTTPStatusCode {
case invalidRequest
case unauthorized
case notFoundError
case tooManyRequests
case internalServerError
case networkConnectTimeoutError
@@ -60,6 +61,7 @@ extension HTTPStatusCode: RawRepresentable {
case .invalidRequest: return 400
case .unauthorized: return 401
case .notFoundError: return 404
case .tooManyRequests: return 429
case .internalServerError: return 500
case .networkConnectTimeoutError: return 599