mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-09 22:35:56 +05:45
retry requests with HTTP status 429
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in new issue
Block a user