Class

public enum Class

The class of a HTTPStatusCode code

  • Informational: the request was received, and is continuing to be processed

    Declaration

    Swift

    case informational
  • Success: the action was successfully received, understood, and accepted

    Declaration

    Swift

    case successful
  • Redirection: further action must be taken in order to complete the request

    Declaration

    Swift

    case redirection
  • Client Error: the request contains bad syntax or cannot be fulfilled

    Declaration

    Swift

    case clientError
  • Server Error: the server failed to fulfill an apparently valid request

    Declaration

    Swift

    case serverError
  • Invalid: the code does not map to a well known status code class

    Declaration

    Swift

    case invalidStatus