APIErrorDetail
public struct APIErrorDetail
Error details for invalidHTTPStatusAPIError
. When ResponseErrorReason
is invalidHTTPStatusAPIError
,
APIErrorDetail
is the associated value. It contains the HTTP status code and the error
messages returned by the LINE server.
-
Error code received from server. This is usually the HTTP status code.
Declaration
Swift
public let code: Int
-
The raw response when this
invalidHTTPStatusAPIError
happens.Declaration
Swift
public let raw: HTTPURLResponse
-
The plain error text converted from the response body data, if existing.
Declaration
Swift
public let rawString: String?