MDError
public struct MDError : Decodable
Structure representing an error returned by the MangaDex API
-
The error’s ID
Declaration
Swift
public let errorId: String
-
The error’s status code (e.g. 404)
Declaration
Swift
public let status: Int
-
The error’s title (e.g.
not_found_http_exception
)Declaration
Swift
public let title: String
-
The error’s user-friendly detailed description
Declaration
Swift
public let detail: String?
-
The error’s context
According to the official documentation:
Once an endpoint decides that a captcha needs to be solved, a 403 Forbidden response will be returned […] The sitekey needed for recaptcha to function is provided […] in the error context, specified as
siteKey
parameter.Declaration
Swift
public let context: [String : String]?