BTHTTPErrorCode
Objective-C
enum BTHTTPErrorCode : NSInteger {}
Swift
enum BTHTTPErrorCode : Int, @unchecked Sendable
BTHTTP error codes
-
Unknown error (reserved)
Declaration
Objective-C
BTHTTPErrorCodeUnknown = 0
Swift
case unknown = 0
-
The response had a Content-Type header that is not supported
Declaration
Objective-C
BTHTTPErrorCodeResponseContentTypeNotAcceptable
Swift
case responseContentTypeNotAcceptable = 1
-
The response was a 4xx error, e.g. 422, indicating a problem with the client’s request
Declaration
Objective-C
BTHTTPErrorCodeClientError
Swift
case clientError = 2
-
The response was a 5xx server error
Declaration
Objective-C
BTHTTPErrorCodeServerError
Swift
case serverError = 3
-
The BTHTTP instance was missing a base URL
Declaration
Objective-C
BTHTTPErrorCodeMissingBaseURL
Swift
case missingBaseURL = 4
-
The response was a 429, indicating a rate limiting error
Declaration
Objective-C
BTHTTPErrorCodeRateLimitError
Swift
case rateLimitError = 5