HTTPStatusCode
public enum HTTPStatusCode : Int
HTTP Status codes
-
Declaration
Swift
case ok = 200
-
Declaration
Swift
case created = 201
-
Declaration
Swift
case accepted = 202
-
Declaration
Swift
case noContent = 204
-
Declaration
Swift
case resetContent = 205
-
Declaration
Swift
case partialContent = 206
-
Declaration
Swift
case multiStatus = 207
-
Declaration
Swift
case alreadyReported = 208
-
Declaration
Swift
case instanceManipulationUsed = 226
-
Declaration
Swift
case multipleChoices = 300
-
Declaration
Swift
case movedPermanently = 301
-
Declaration
Swift
case found = 302
-
Declaration
Swift
case seeOther = 303
-
Declaration
Swift
case notModified = 304
-
Declaration
Swift
case useProxy = 305
-
Declaration
Swift
case unused = 306
-
Declaration
Swift
case temporaryRedirect = 307
-
Declaration
Swift
case permanentRedirect = 308
-
Declaration
Swift
case badRequest = 400
-
Declaration
Swift
case unauthorized = 401
-
Declaration
Swift
case paymentRequired = 402
-
Declaration
Swift
case forbidden = 403
-
Declaration
Swift
case notFound = 404
-
Declaration
Swift
case methodNotAllowed = 405
-
Declaration
Swift
case notAcceptable = 406
-
Declaration
Swift
case requestTimeout = 408
-
Declaration
Swift
case conflict = 409
-
Declaration
Swift
case gone = 410
-
Declaration
Swift
case lengthRequired = 411
-
Declaration
Swift
case preconditionFailure = 412
-
Declaration
Swift
case requestEntityTooLarge = 413
-
Declaration
Swift
case requestUriTooLong = 414
-
Declaration
Swift
case unsupportedMediaType = 415
-
Declaration
Swift
case rangeNotSatisfiable = 416
-
Declaration
Swift
case expectationFailed = 417
-
Declaration
Swift
case imateapot = 418
-
Declaration
Swift
case misdirectedRequest = 421
-
Declaration
Swift
case unprocessableEntity = 422
-
Declaration
Swift
case locked = 423
-
Declaration
Swift
case failedDependency = 424
-
Declaration
Swift
case tooEarly = 425
-
Declaration
Swift
case upgradeRequired = 426
-
Declaration
Swift
case preconditionRequired = 428
-
Declaration
Swift
case tooManyRequests = 429
-
Declaration
Swift
case requestHeaderFieldsTooLarge = 431
-
Declaration
Swift
case unavailableForLegalReasons = 451
-
Declaration
Swift
case serverError = 500
-
Declaration
Swift
case notImplemented = 501
-
Declaration
Swift
case badGateway = 502
-
Declaration
Swift
case serviceUnavailable = 503
-
Declaration
Swift
case gatewayTimeout = 504
-
Declaration
Swift
case httpVersionNotSupported = 505
-
Declaration
Swift
case variantAlsoNegotiates = 506
-
Declaration
Swift
case insufficentStorage = 507
-
Declaration
Swift
case loopDetected = 508
-
Declaration
Swift
case notExtended = 510
-
Declaration
Swift
case networkAuthenticationRequired = 511
-
Declaration
Swift
case networkConnectTimeoutError = 599
-
Declaration
Swift
case debug = -2
-
Response status code is in the range of 200..<300
Declaration
Swift
public var isSuccessful: Bool { get }
-
Response status code that indicates an empty body
Declaration
Swift
public var isNoContent: Bool { get }
-
Response status code is in the range of 300..<400
Declaration
Swift
public var isRedirect: Bool { get }