HTTPCode
public enum HTTPCode : Int, CaseIterable, Hashable
Enumeration of HTTP code https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
-
Undocumented
Declaration
Swift
case `continue` = 100
-
Undocumented
Declaration
Swift
case switchingProtocols = 101
-
Undocumented
Declaration
Swift
case processing = 102
-
Undocumented
Declaration
Swift
case ok = 200
-
Undocumented
Declaration
Swift
case created = 201
-
Undocumented
Declaration
Swift
case accepted = 202
-
Undocumented
Declaration
Swift
case nonAuthoritativeInformation = 203
-
Undocumented
Declaration
Swift
case noContent = 204
-
Undocumented
Declaration
Swift
case resetContent = 205
-
Undocumented
Declaration
Swift
case partialContent = 206
-
Undocumented
Declaration
Swift
case multipleChoices = 300
-
Undocumented
Declaration
Swift
case movedPermanently = 301
-
Undocumented
Declaration
Swift
case found = 302
-
Undocumented
Declaration
Swift
case seeOther = 303
-
Undocumented
Declaration
Swift
case notModified = 304
-
Undocumented
Declaration
Swift
case useProxy = 305
-
Undocumented
Declaration
Swift
case switchProxy = 306
-
Undocumented
Declaration
Swift
case temporaryRedirect = 307
-
Undocumented
Declaration
Swift
case permanentRedirect = 308
-
Undocumented
Declaration
Swift
case badRequest = 400
-
Undocumented
Declaration
Swift
case unauthorized = 401
-
Undocumented
Declaration
Swift
case paymentRequired = 402
-
Undocumented
Declaration
Swift
case forbidden = 403
-
Undocumented
Declaration
Swift
case notFound = 404
-
Undocumented
Declaration
Swift
case methodNotAllowed = 405
-
Undocumented
Declaration
Swift
case notAcceptable = 406
-
Undocumented
Declaration
Swift
case proxyAuthenticationRequired = 407
-
Undocumented
Declaration
Swift
case requestTimeout = 408
-
Undocumented
Declaration
Swift
case conflict = 409
-
Undocumented
Declaration
Swift
case gone = 410
-
Undocumented
Declaration
Swift
case lengthRequired = 411
-
Undocumented
Declaration
Swift
case preconditionFailed = 412
-
Undocumented
Declaration
Swift
case requestEntityTooLarge = 413
-
Undocumented
Declaration
Swift
case requestURITooLong = 414
-
Undocumented
Declaration
Swift
case unsupportedMediaType = 415
-
Undocumented
Declaration
Swift
case requestedRangeNotSatisfiable = 416
-
Undocumented
Declaration
Swift
case expectationFailed = 417
-
Undocumented
Declaration
Swift
case imATeapot = 418
-
Undocumented
Declaration
Swift
case authenticationTimeout = 419
-
Undocumented
Declaration
Swift
case enhanceYourCalm = 420
-
Undocumented
Declaration
Swift
case unprocessableEntity = 422
-
Undocumented
Declaration
Swift
case locked = 423
-
Undocumented
Declaration
Swift
case failedDependency = 424
-
Undocumented
Declaration
Swift
case preconditionRequired = 428
-
Undocumented
Declaration
Swift
case tooManyRequests = 429
-
Undocumented
Declaration
Swift
case requestHeaderFieldsTooLarge = 431
-
Undocumented
Declaration
Swift
case internalServerError = 500
-
Undocumented
Declaration
Swift
case notImplemented = 501
-
Undocumented
Declaration
Swift
case badGateway = 502
-
Undocumented
Declaration
Swift
case serviceUnavailable = 503
-
Undocumented
Declaration
Swift
case gatewayTimeout = 504
-
Undocumented
Declaration
Swift
case httpVersionNotSupported = 505
-
Undocumented
Declaration
Swift
case variantAlsoNegotiates = 506
-
Undocumented
Declaration
Swift
case insufficientStorage = 507
-
Undocumented
Declaration
Swift
case loopDetected = 508
-
Undocumented
Declaration
Swift
case notExtended = 510
-
Undocumented
Declaration
Swift
case networkAuthenticationRequired = 511
-
A standard message for HTTP code
Declaration
Swift
public var message: String { get }
-
A standard message for HTTP code
Declaration
Swift
public var reason: String? { get }