Created
May 14, 2019 06:51
-
-
Save Mintri1199/f6279faa899ceb2821e421f4109e5761 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum NetworkReponse: String, Error { // Conform to Error | |
case authenticationError = "You need to be authenticated first." | |
case badRequest = "Bad Request" | |
case outdated = "The url you requested is outdated." | |
case failed = "Network request failed." | |
case noData = "Response returned with no data to decode." | |
case unableToDecode = "We could not decode the response." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment