HTTPStatusCode

public enum HTTPStatusCode : Int

HTTP status codes and numbers.

Usage Example:

var httpStatusCode: HTTPStatusCode = .unknown
  • HTTP code 202

    Declaration

    Swift

    case accepted = 202
  • HTTP code 502

    Declaration

    Swift

    case badGateway = 502
  • HTTP code 400

    Declaration

    Swift

    case badRequest = 400
  • HTTP code 409

    Declaration

    Swift

    case conflict = 409
  • HTTP code 100

    Declaration

    Swift

    case `continue` = 100
  • HTTP code 201

    Declaration

    Swift

    case created = 201
  • HTTP code 417

    Declaration

    Swift

    case expectationFailed = 417
  • HTTP code 424

    Declaration

    Swift

    case failedDependency = 424
  • HTTP code 403

    Declaration

    Swift

    case forbidden = 403
  • HTTP code 504

    Declaration

    Swift

    case gatewayTimeout = 504
  • HTTP code 410

    Declaration

    Swift

    case gone = 410
  • HTTP code 505

    Declaration

    Swift

    case httpVersionNotSupported = 505
  • HTTP code 419

    Declaration

    Swift

    case insufficientSpaceOnResource = 419
  • HTTP code 507

    Declaration

    Swift

    case insufficientStorage = 507
  • HTTP code 500

    Declaration

    Swift

    case internalServerError = 500
  • HTTP code 411

    Declaration

    Swift

    case lengthRequired = 411
  • HTTP code 420

    Declaration

    Swift

    case methodFailure = 420
  • HTTP code 405

    Declaration

    Swift

    case methodNotAllowed = 405
  • HTTP code 301

    Declaration

    Swift

    case movedPermanently = 301
  • HTTP code 302

    Declaration

    Swift

    case movedTemporarily = 302
  • HTTP code 207

    Declaration

    Swift

    case multiStatus = 207
  • HTTP code 300

    Declaration

    Swift

    case multipleChoices = 300
  • HTTP code 511

    Declaration

    Swift

    case networkAuthenticationRequired = 511
  • HTTP code 204

    Declaration

    Swift

    case noContent = 204
  • HTTP code 203

    Declaration

    Swift

    case nonAuthoritativeInformation = 203
  • HTTP code 406

    Declaration

    Swift

    case notAcceptable = 406
  • HTTP code 404

    Declaration

    Swift

    case notFound = 404
  • HTTP code 501

    Declaration

    Swift

    case notImplemented = 501
  • HTTP code 304

    Declaration

    Swift

    case notModified = 304
  • OK

    HTTP code 200

    Declaration

    Swift

    case OK = 200
  • HTTP code 206

    Declaration

    Swift

    case partialContent = 206
  • HTTP code 402

    Declaration

    Swift

    case paymentRequired = 402
  • HTTP code 412

    Declaration

    Swift

    case preconditionFailed = 412
  • HTTP code 428

    Declaration

    Swift

    case preconditionRequired = 428
  • HTTP code 407

    Declaration

    Swift

    case proxyAuthenticationRequired = 407
  • HTTP code 102

    Declaration

    Swift

    case processing = 102
  • HTTP code 431

    Declaration

    Swift

    case requestHeaderFieldsTooLarge = 431
  • HTTP code 408

    Declaration

    Swift

    case requestTimeout = 408
  • HTTP code 413

    Declaration

    Swift

    case requestTooLong = 413
  • HTTP code 414

    Declaration

    Swift

    case requestURITooLong = 414
  • HTTP code 416

    Declaration

    Swift

    case requestedRangeNotSatisfiable = 416
  • HTTP code 205

    Declaration

    Swift

    case resetContent = 205
  • HTTP code 303

    Declaration

    Swift

    case seeOther = 303
  • HTTP code 503

    Declaration

    Swift

    case serviceUnavailable = 503
  • HTTP code 101

    Declaration

    Swift

    case switchingProtocols = 101
  • HTTP code 307

    Declaration

    Swift

    case temporaryRedirect = 307
  • HTTP code 429

    Declaration

    Swift

    case tooManyRequests = 429
  • HTTP code 401

    Declaration

    Swift

    case unauthorized = 401
  • HTTP code 422

    Declaration

    Swift

    case unprocessableEntity = 422
  • HTTP code 415

    Declaration

    Swift

    case unsupportedMediaType = 415
  • HTTP code 305

    Declaration

    Swift

    case useProxy = 305
  • HTTP code 421

    Declaration

    Swift

    case misdirectedRequest = 421
  • HTTP code -1

    Declaration

    Swift

    case unknown = -1

HTTP