We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f4e72 commit 1778943Copy full SHA for 1778943
2 files changed
Splajompy/Extensions/APIService.swift
@@ -79,6 +79,10 @@ public struct APIService {
79
await AuthManager.shared.signOut()
80
return .error(APIErrorMessage(message: "Session expired. Please sign in again."))
81
}
82
+ if httpResponse.statusCode == 503 {
83
+ return .error(
84
+ APIErrorMessage(message: "Service temporarily unavailable. Please try again later."))
85
+ }
86
87
88
let decoder = JSONDecoder()
Splajompy/Utilities/ErrorScreen.swift
@@ -16,6 +16,7 @@ struct ErrorScreen: View {
16
.foregroundColor(.red)
17
.multilineTextAlignment(.center)
18
19
+ .padding()
20
Button {
21
Task {
22
isRetrying = true
0 commit comments