diff --git a/Packages/Pachyderm/Sources/Pachyderm/Client.swift b/Packages/Pachyderm/Sources/Pachyderm/Client.swift index ab3c4c55..b12fe8ac 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Client.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Client.swift @@ -508,6 +508,8 @@ extension Client { // todo: support more status codes case .unexpectedStatus(413): return "HTTP 413: Payload Too Large" + case .unexpectedStatus(429): + return "HTTP 429: Rate Limit Exceeded" case .unexpectedStatus(let code): return "HTTP Code \(code)" case .invalidRequest: diff --git a/Tusker/Views/Toast/ToastConfiguration.swift b/Tusker/Views/Toast/ToastConfiguration.swift index 581ef236..81aedccc 100644 --- a/Tusker/Views/Toast/ToastConfiguration.swift +++ b/Tusker/Views/Toast/ToastConfiguration.swift @@ -85,6 +85,8 @@ fileprivate extension Pachyderm.Client.Error { switch type { case .networkError(_): return "wifi.exclamationmark" + case .unexpectedStatus(429): + return "clock.badge.exclamationmark" default: return "exclamationmark.triangle" }