0001    public enum Status
Response.swift:5
  public var status:Status
Response.swift:9
  public init(_ status:Status, headers:[Header]? = nil, contentType:String? = nil, body:String? = nil) {
: Int, CustomStringConvertible { 0002 case Continue
Status.swift:64
    case .Continue:
= 100 0003 case SwitchingProtocols
Status.swift:66
    case .SwitchingProtocols:
= 101 0004 case Processing
Status.swift:68
    case .Processing:
= 102 0005 case Ok
Status.swift:70
    case .Ok:
= 200 0006 case Created
Status.swift:72
    case .Created:
= 201 0007 case Accepted
Status.swift:74
    case .Accepted:
= 202 0008 case NonAuthoritiveInformation
Status.swift:76
    case .NonAuthoritiveInformation:
= 203 0009 case NoContent
Status.swift:78
    case .NoContent:
= 204 0010 case ResetContent
Status.swift:80
    case .ResetContent:
= 205 0011 case PartialContent
Status.swift:82
    case .PartialContent:
= 206 0012 case MultiStatus
Status.swift:84
    case .MultiStatus:
= 207 0013 case AlreadyReported
Status.swift:86
    case .AlreadyReported:
= 208 0014 case IMUsed
Status.swift:88
    case .IMUsed:
= 226 0015 case MultipleChoices
Status.swift:90
    case .MultipleChoices:
= 300 0016 case MovedPermanently
Status.swift:92
    case .MovedPermanently:
= 301 0017 case Found
Status.swift:94
    case .Found:
= 302 0018 case SeeOther
Status.swift:96
    case .SeeOther:
= 303 0019 case NotModified
Status.swift:98
    case .NotModified:
= 304 0020 case UseProxy
Status.swift:100
    case .UseProxy:
= 305 0021 case Reserved
Status.swift:102
    case .Reserved:
= 306 0022 case TemporaryRedirect
Status.swift:104
    case .TemporaryRedirect:
= 307 0023 case PermanentRedirect
Status.swift:106
    case .PermanentRedirect:
= 308 0024 case BadRequest
Status.swift:108
    case .BadRequest:
= 400 0025 case Unauthorized
Status.swift:110
    case .Unauthorized:
= 401 0026 case PaymentRequired
Status.swift:112
    case .PaymentRequired:
= 402 0027 case Forbidden
Status.swift:114
    case .Forbidden:
= 403 0028 case NotFound
Status.swift:116
    case .NotFound:
= 404 0029 case MethodNotAllowed
Status.swift:118
    case .MethodNotAllowed:
= 405 0030 case NotAcceptable
Status.swift:120
    case .NotAcceptable:
= 406 0031 case ProxyAuthenticationRequired
Status.swift:122
    case .ProxyAuthenticationRequired:
= 407 0032 case RequestTimeout
Status.swift:124
    case .RequestTimeout:
= 408 0033 case Conflict
Status.swift:126
    case .Conflict:
= 409 0034 case Gone
Status.swift:128
    case .Gone:
= 410 0035 case LengthRequired
Status.swift:130
    case .LengthRequired:
= 411 0036 case PreconditionFailed
Status.swift:132
    case .PreconditionFailed:
= 412 0037 case RequestEntityTooLarge
Status.swift:134
    case .RequestEntityTooLarge:
= 413 0038 case RequestURITooLong
Status.swift:136
    case .RequestURITooLong:
= 414 0039 case UnsupportedMediaType
Status.swift:138
    case .UnsupportedMediaType:
= 415 0040 case RequestedRangeNotSatisfiable
Status.swift:140
    case .RequestedRangeNotSatisfiable:
= 416 0041 case ExpectationFailed
Status.swift:142
    case .ExpectationFailed:
= 417 0042 case MisdirectedRequest
Status.swift:144
    case .MisdirectedRequest:
= 421 0043 case UnprocessableEntity
Status.swift:146
    case .UnprocessableEntity:
= 422 0044 case Locked
Status.swift:148
    case .Locked:
= 423 0045 case FailedDependency
Status.swift:150
    case .FailedDependency:
= 424 0046 case UpgradeRequired
Status.swift:152
    case .UpgradeRequired:
= 426 0047 case PreconditionRequired
Status.swift:154
    case .PreconditionRequired:
= 428 0048 case TooManyRequests
Status.swift:156
    case .TooManyRequests:
= 429 0049 case RequestHeaderFieldsTooLarge
Status.swift:158
    case .RequestHeaderFieldsTooLarge:
= 431 0050 case InternalServerError
Status.swift:160
    case .InternalServerError:
= 500 0051 case NotImplemented
Status.swift:162
    case .NotImplemented:
= 501 0052 case BadGateway
Status.swift:164
    case .BadGateway:
= 502 0053 case ServiceUnavailable
Status.swift:166
    case .ServiceUnavailable:
= 503 0054 case GatewayTimeout
Status.swift:168
    case .GatewayTimeout:
= 504 0055 case HTTPVersionNotSupported
Status.swift:170
    case .HTTPVersionNotSupported:
= 505 0056 case VariantAlsoNegotiates
Status.swift:172
    case .VariantAlsoNegotiates:
= 506 0057 case InsufficientStorage
Status.swift:174
    case .InsufficientStorage:
= 507 0058 case LoopDetected
Status.swift:176
    case .LoopDetected:
= 508 0059 case NotExtended
Status.swift:178
    case .NotExtended:
= 510 0060 case NetworkAuthenticationRequired
Status.swift:180
    case .NetworkAuthenticationRequired:
= 511 0061 0062 public var reason
Status.swift:186
    return "\(rawValue) \(reason)"
:String { 0063 switch self { 0064 case .Continue: 0065 return "CONTINUE" 0066 case .SwitchingProtocols: 0067 return "SWITCHING PROTOCOLS" 0068 case .Processing: 0069 return "PROCESSING" 0070 case .Ok: 0071 return "OK" 0072 case .Created: 0073 return "CREATED" 0074 case .Accepted: 0075 return "ACCEPTED" 0076 case .NonAuthoritiveInformation: 0077 return "NON-AUTHORITATIVE INFORMATION" 0078 case .NoContent: 0079 return "NO CONTENT" 0080 case .ResetContent: 0081 return "RESET CONTENT" 0082 case .PartialContent: 0083 return "PARTIAL CONTENT" 0084 case .MultiStatus: 0085 return "MULTI STATUS" 0086 case .AlreadyReported: 0087 return "ALREADY REPORTED" 0088 case .IMUsed: 0089 return "IM USED" 0090 case .MultipleChoices: 0091 return "MULTIPLE CHOICES" 0092 case .MovedPermanently: 0093 return "MOVED PERMANENTLY" 0094 case .Found: 0095 return "FOUND" 0096 case .SeeOther: 0097 return "SEE OTHER" 0098 case .NotModified: 0099 return "NOT MODIFIED" 0100 case .UseProxy: 0101 return "USE PROXY" 0102 case .Reserved: 0103 return "RESERVED" 0104 case .TemporaryRedirect: 0105 return "TEMPORARY REDIRECT" 0106 case .PermanentRedirect: 0107 return "PERMANENT REDIRECT" 0108 case .BadRequest: 0109 return "BAD REQUEST" 0110 case .Unauthorized: 0111 return "UNAUTHORIZED" 0112 case .PaymentRequired: 0113 return "PAYMENT REQUIRED" 0114 case .Forbidden: 0115 return "FORBIDDEN" 0116 case .NotFound: 0117 return "NOT FOUND" 0118 case .MethodNotAllowed: 0119 return "METHOD NOT ALLOWED" 0120 case .NotAcceptable: 0121 return "NOT ACCEPTABLE" 0122 case .ProxyAuthenticationRequired: 0123 return "PROXY AUTHENTICATION REQUIRED" 0124 case .RequestTimeout: 0125 return "REQUEST TIMEOUT" 0126 case .Conflict: 0127 return "CONFLICT" 0128 case .Gone: 0129 return "GONE" 0130 case .LengthRequired: 0131 return "LENGTH REQUIRED" 0132 case .PreconditionFailed: 0133 return "PRECONDITION FAILED" 0134 case .RequestEntityTooLarge: 0135 return "REQUEST ENTITY TOO LARGE" 0136 case .RequestURITooLong: 0137 return "REQUEST-URI TOO LONG" 0138 case .UnsupportedMediaType: 0139 return "UNSUPPORTED MEDIA TYPE" 0140 case .RequestedRangeNotSatisfiable: 0141 return "REQUESTED RANGE NOT SATISFIABLE" 0142 case .ExpectationFailed: 0143 return "EXPECTATION FAILED" 0144 case .MisdirectedRequest: 0145 return "MISDIRECTED REQUEST" 0146 case .UnprocessableEntity: 0147 return "UNPROCESSABLE ENTITY" 0148 case .Locked: 0149 return "LOCKED" 0150 case .FailedDependency: 0151 return "FAILED DEPENDENCY" 0152 case .UpgradeRequired: 0153 return "UPGRADE REQUIRED" 0154 case .PreconditionRequired: 0155 return "PRECONDITION REQUIRED" 0156 case .TooManyRequests: 0157 return "TOO MANY REQUESTS" 0158 case .RequestHeaderFieldsTooLarge: 0159 return "REQUEST HEADER FIELDS TOO LARGE" 0160 case .InternalServerError: 0161 return "INTERNAL SERVER ERROR" 0162 case .NotImplemented: 0163 return "NOT IMPLEMENTED" 0164 case .BadGateway: 0165 return "BAD GATEWAY" 0166 case .ServiceUnavailable: 0167 return "SERVICE UNAVAILABLE" 0168 case .GatewayTimeout: 0169 return "GATEWAY TIMEOUT" 0170 case .HTTPVersionNotSupported: 0171 return "HTTP VERSION NOT SUPPORTED" 0172 case .VariantAlsoNegotiates: 0173 return "VARIANT ALSO NEGOTIATES" 0174 case .InsufficientStorage: 0175 return "INSUFFICIENT STORAGE" 0176 case .LoopDetected: 0177 return "LOOP DETECTED" 0178 case .NotExtended: 0179 return "NOT EXTENDED" 0180 case .NetworkAuthenticationRequired: 0181 return "NETWORK AUTHENTICATION REQUIRED" 0182 } 0183 } 0184 0185 public var description
Response.swift:20
    return status.description
:String { 0186 return "\(rawValue) \(reason)" 0187 } 0188 0189 public var code:Int { 0190 return rawValue 0191 } 0192 } 0193