BaseResponse
public enum BaseResponse : Error
Enum for representing basic response cases.
- serviceOffline: When network service is offline.
- badRequest: When receive 400 status code from server.
- unauthorized: When receive 401 status code from server.
- forbidden: When receive 403 status code from server.
- notFound: When receive 404 status code from server.
- validationProblem: When receive 422 status code from server.
- unexpectedError: When receive
Internal Sever Error
.
-
Undocumented
Declaration
Swift
case serviceOffline
-
Undocumented
Declaration
Swift
case badRequest(body: Any?)
-
Undocumented
Declaration
Swift
case unauthorized(body: Any?)
-
Undocumented
Declaration
Swift
case forbidden(body: Any?)
-
Undocumented
Declaration
Swift
case notFound(body: Any?)
-
Undocumented
Declaration
Swift
case validationProblem(error: Any?)
-
Undocumented
Declaration
Swift
case unexpectedError(error: Any?)