SDK Reference v2.0.0 / HTTPResponseError

HTTPResponseError

struct HTTPResponseError : Error

Details about a failed HTTP request or an HTTP response that indicated an error.


statusCode
let statusCode: Int

HTTP status code, e.g. 500.

message
let message: String?

Error message encoded in the response body, if successfully parsed.