         }
     }
     
-    var isFailure: Bool {
+    public var isFailure: Bool {
         if case .failure(_) = self {
             return true
         } else {

    case successful(result: T)
    case failure(message: String)
    
    var isSuccessful: Bool {
        if case .successful(_) = self {
            return true
        } else {

        }
    }
    
    public static func from<T>(error: Swift.Error, defaultMessage: String) -> Task<T> {
        if let apiHandler = TaskConfiguration.apiHandler,
            let moya = error as? MoyaError,
            let response = moya.response,
