Status
public enum Status : UInt16
A type-safe HTTP status.
-
Continue
Declaration
Swift
case Continue = 100
-
Swithing protocols
Declaration
Swift
case switchingProtocols = 101
-
Processing
Declaration
Swift
case processing = 102
-
OK
Declaration
Swift
case ok = 200
-
Created
Declaration
Swift
case created = 201
-
Accepted
Declaration
Swift
case accepted = 202
-
Non-authoritative information
Declaration
Swift
case nonAuthoritativeInformation = 203
-
No content
Declaration
Swift
case noContent = 204
-
Reset content
Declaration
Swift
case resetContent = 205
-
Partial content
Declaration
Swift
case partialContent = 206
-
Multi-status
Declaration
Swift
case multiStatus = 207
-
Already reported
Declaration
Swift
case alreadyReported = 208
-
IM used
Declaration
Swift
case imUsed = 226
-
Multiple choices
Declaration
Swift
case multipleChoices = 300
-
Moved permanently
Declaration
Swift
case movedPermanently = 301
-
Found
Declaration
Swift
case found = 302
-
See other
Declaration
Swift
case seeOther = 303
-
Not modified
Declaration
Swift
case notModified = 304
-
Use proxy
Declaration
Swift
case useProxy = 305
-
Switch proxy
Declaration
Swift
case switchProxy = 306
-
Temporary redirect
Declaration
Swift
case temporaryRedirect = 307
-
Permanent redirect
Declaration
Swift
case permanentRedirect = 308
-
Bad request
Declaration
Swift
case badRequest = 400
-
Unauthorized
Declaration
Swift
case unauthorized = 401
-
Payment required
Declaration
Swift
case paymentRequired = 402
-
Forbidden
Declaration
Swift
case forbidden = 403
-
Not found
Declaration
Swift
case notFound = 404
-
Method not allowed
Declaration
Swift
case methodNotAllowed = 405
-
Not acceptable
Declaration
Swift
case notAcceptable = 406
-
Proxy authentication required
Declaration
Swift
case proxyAuthenticationRequired = 407
-
Request timeout
Declaration
Swift
case requestTimeout = 408
-
Conflict
Declaration
Swift
case conflict = 409
-
Gone
Declaration
Swift
case gone = 410
-
Length required
Declaration
Swift
case lengthRequired = 411
-
Precodition failed
Declaration
Swift
case preconditionFailed = 412
-
Payload too large
Declaration
Swift
case payloadTooLarge = 413
-
URI too long
Declaration
Swift
case uriTooLong = 414
-
Unsupported media type
Declaration
Swift
case unsupportedMediaType = 415
-
Range not satisfiable
Declaration
Swift
case rangeNotSatisfiable = 416
-
Expectation failed
Declaration
Swift
case expectationFailed = 417
-
Teapot
Declaration
Swift
case teapot = 418
-
Misdirected request
Declaration
Swift
case misdirectedRequest = 421
-
Unprocessable entity
Declaration
Swift
case unprocessableEntity = 422
-
Locked
Declaration
Swift
case locked = 423
-
Failed dependency
Declaration
Swift
case failedDependency = 424
-
Upgrade required
Declaration
Swift
case upgradeRequired = 426
-
Precondition required
Declaration
Swift
case preconditionRequired = 428
-
Too many requests
Declaration
Swift
case tooManyRequests = 429
-
Request header fields too large
Declaration
Swift
case requestHeaderFieldsTooLarge = 431
-
Unavailable for legal reasons
Declaration
Swift
case unavailableForLegalReasons = 451
-
Internal server error
Declaration
Swift
case internalServerError = 500
-
Not implemented
Declaration
Swift
case notImplemented = 501
-
Bad gateway
Declaration
Swift
case badGateway = 502
-
Service unavailable
Declaration
Swift
case serviceUnavailable = 503
-
Gateway timeout
Declaration
Swift
case gatewayTimeout = 504
-
HTTP version not supported
Declaration
Swift
case httpVersionNotSupported = 505
-
Variant also negotiates
Declaration
Swift
case variantAlsoNegotiates = 506
-
Insufficient storage
Declaration
Swift
case insufficientStorage = 507
-
Loop detected
Declaration
Swift
case loopDetected = 508
-
Not extended
Declaration
Swift
case notExtended = 510
-
Network authentication required
Declaration
Swift
case networkAuthenticationRequired = 511
-
The HTTP status category for an HTTP status.
Declaration
Swift
public var category: StatusCategory { get }