2023-04-23 13:16:22 +00:00
|
|
|
/// This error definitions represents any error happening while the client makes a request to the remote API and handles the respective response, excluding the decoding of the retrieved data into a particular model.
|
2023-04-19 14:33:48 +00:00
|
|
|
public enum AmiiboClientError: Error {
|
2023-04-23 13:16:22 +00:00
|
|
|
/// The status code of the response is not the expected one, which is `.ok` (`200`).
|
2023-04-19 14:33:48 +00:00
|
|
|
case responseCode(Int)
|
2023-04-23 13:16:22 +00:00
|
|
|
/// The status code of the response was not received at all.
|
2023-04-19 14:33:48 +00:00
|
|
|
case responseCodeNotFound
|
|
|
|
}
|