def fromCode()

in finagle-base-http/src/main/scala/com/twitter/finagle/http/Status.scala [137:199]


  def fromCode(code: Int): Status = {
    (code: @switch) match {
      case 100 => Continue
      case 101 => SwitchingProtocols
      case 102 => Processing
      case 200 => Ok
      case 201 => Created
      case 202 => Accepted
      case 203 => NonAuthoritativeInformation
      case 204 => NoContent
      case 205 => ResetContent
      case 206 => PartialContent
      case 207 => MultiStatus
      case 300 => MultipleChoices
      case 301 => MovedPermanently
      case 302 => Found
      case 303 => SeeOther
      case 304 => NotModified
      case 305 => UseProxy
      case 307 => TemporaryRedirect
      case 308 => PermanentRedirect
      case 400 => BadRequest
      case 401 => Unauthorized
      case 402 => PaymentRequired
      case 403 => Forbidden
      case 404 => NotFound
      case 405 => MethodNotAllowed
      case 406 => NotAcceptable
      case 407 => ProxyAuthenticationRequired
      case 408 => RequestTimeout
      case 409 => Conflict
      case 410 => Gone
      case 411 => LengthRequired
      case 412 => PreconditionFailed
      case 413 => RequestEntityTooLarge
      case 414 => RequestURITooLong
      case 415 => UnsupportedMediaType
      case 416 => RequestedRangeNotSatisfiable
      case 417 => ExpectationFailed
      case 420 => EnhanceYourCalm
      case 422 => UnprocessableEntity
      case 423 => Locked
      case 424 => FailedDependency
      case 425 => UnorderedCollection
      case 426 => UpgradeRequired
      case 428 => PreconditionRequired
      case 429 => TooManyRequests
      case 431 => RequestHeaderFieldsTooLarge
      case 451 => UnavailableForLegalReasons
      case 499 => ClientClosedRequest
      case 500 => InternalServerError
      case 501 => NotImplemented
      case 502 => BadGateway
      case 503 => ServiceUnavailable
      case 504 => GatewayTimeout
      case 505 => HttpVersionNotSupported
      case 506 => VariantAlsoNegotiates
      case 507 => InsufficientStorage
      case 510 => NotExtended
      case 511 => NetworkAuthenticationRequired
      case _ => Status(code)
    }
  }