class ErrorHandler {
static func handleError(code: Int) -> String {
"Handle error with code: \(code) 😡".log()
switch code {
case 400:
return "Invalid data!".localized
case 401:
FlowManager.logout()
return "You are not authorized!".localized
case 403:
return "Access denied!".localized
case 404:
return "Not found!".localized
default:
return "Something went wrong! Please try again.".localized
}
}
}
Used snippet
Expected Behavior
Emoji in the page content
Actual Behavior
see:
