HttpError
public enum HttpError : Error
An enum that contains all known codes that can occur from a Http request.
-
Forwarded when there is a problem from the underlying URLSession the SDK does not handle.
Declaration
Swift
case requestError(Error) -
The request completed w/o error, but did not return any data as expected
Declaration
Swift
case missingData -
The request took to long to complete and we errored it out
Declaration
Swift
case requestTimeout -
The downloaded json could not be deserialized
Declaration
Swift
case invalidJSON(Error) -
Returned when the json data did not match the exepected form
Declaration
Swift
case invalidJSONSchemea -
Returned a none 2xx error code request you sent to the server was using invalid API keys.
Declaration
Swift
case httpErrorCode(Int) -
The venue blob downloaded from the Mappedin servers could not be parsed Please consult your Mappedin rep.
Declaration
Swift
case deserializableError(DeserializableError) -
A human readable description of the error
Declaration
Swift
public var localizedDescription: String { get }
View on GitHub
HttpError Enumeration Reference