BTHTTPError
public enum BTHTTPError : Error, CustomNSError, LocalizedError, Equatable
Error codes associated with BTHTTP
-
- Unknown error (reserved)
Declaration
Swift
case unknown
-
- The response had a Content-Type header that is not supported
Declaration
Swift
case responseContentTypeNotAcceptable([String : Any])
-
- The response was a 4xx error, e.g. 422, indicating a problem with the client’s request
Declaration
Swift
case clientError([String : Any])
-
- The response was a 5xx server error
Declaration
Swift
case serverError([String : Any])
-
- The BTHTTP instance was missing a base URL
Declaration
Swift
case missingBaseURL([String : Any])
-
- The response was a 429, indicating a rate limiting error
Declaration
Swift
case rateLimitError([String : Any])
-
- The data object was unexpectedly nil
Declaration
Swift
case dataNotFound
-
- The HTTP response could not be created or is invalid
Declaration
Swift
case httpResponseInvalid
-
- The URL string is either malformed or invalid
Declaration
Swift
case urlStringInvalid
-
- The client API URL is either malformed or invalid
Declaration
Swift
case clientApiURLInvalid
-
- The authorization fingerprint is invalid
Declaration
Swift
case invalidAuthorizationFingerprint
-
- Failed to convert
Encodable
type to[String: Any]
dictionary
Declaration
Swift
case serializationError(String)
- Failed to convert
-
- Deallocated HTTPClient
Declaration
Swift
case deallocated(String)
-
Declaration
Swift
public static var errorDomain: String { get }
-
Declaration
Swift
public var errorCode: Int { get }
-
Declaration
Swift
public var errorUserInfo: [String : Any] { get }
-
Declaration
Swift
public static func == (lhs: BTHTTPError, rhs: BTHTTPError) -> Bool