refactor error handling to utilize `Result` enum
refactor error handling to utilize `Result` enum

Electrode-iOS/ELWebService,dwsjoquist/ELWebService,Electrode-iOS/ELWebService,dpettigrew/Swallow,TheHolyGrail/Swallow