SKResponseStatus
public struct SKResponseStatus
The Response Status Codes used by the Spotify Web API, as defined in the RFC 2616 and RFC 6585.
-
The underlying HTTP status code.
Declaration
Swift
public let code: Int
-
The request has succeeded. The client can read the result of the request in the body and the headers of the response.
Declaration
Swift
public static let ok: SKResponseStatus
-
The request has been fulfilled and resulted in a new resource being created.
Declaration
Swift
public static let created: SKResponseStatus
-
The request has been accepted for processing, but the processing has not been completed.
Declaration
Swift
public static let accepted: SKResponseStatus
-
The request has succeeded but returns no message body.
Declaration
Swift
public static let noContent: SKResponseStatus
-
The response has not changed. See Conditional requests for more details.
Declaration
Swift
public static let notModified: SKResponseStatus
-
The request could not be understood by the server due to malformed syntax. The message body will contain more information. See Response Schema for more details.
Declaration
Swift
public static let badRequest: SKResponseStatus
-
The request requires user authentication or, if the request included authorization credentials, authorization has been refused for those credentials.
Declaration
Swift
public static let unauthorized: SKResponseStatus
-
The server understood the request, but is refusing to fulfill it.
Declaration
Swift
public static let forbidden: SKResponseStatus
-
The requested resource could not be found. This error can be due to a temporary or permanent condition.
Declaration
Swift
public static let notFound: SKResponseStatus
-
Rate limiting has been applied.
Declaration
Swift
public static let tooManyRequests: SKResponseStatus
-
An internal server error has occurred. Although unlikely, if you receive this error, please report it here.
Declaration
Swift
public static let internalServerError: SKResponseStatus
-
The server was acting as a gateway or proxy and received an invalid response from the upstream server.
Declaration
Swift
public static let badGateway: SKResponseStatus
-
The server is currently unable to handle the request due to a temporary condition which will be alleviated after some delay. You can choose to resend the request again.
Declaration
Swift
public static let serviceUnavailable: SKResponseStatus
-
Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public var debugDescription: String { get }
-
Declaration
Swift
public static func == (lhs: SKResponseStatus, rhs: SKResponseStatus) -> Bool
-
Declaration
Swift
public init(from decoder: Decoder) throws