Category

public enum Category

Represents the five categories of HTTP response codes.

  • Indicates an informational (1xx) response, possibly pending further information.

    Declaration

    Swift

    case informational
  • Indicates an successful (2xx) response.

    Declaration

    Swift

    case success
  • Indicates a redirect (3xx) response.

    Declaration

    Swift

    case redirection
  • Indicates a client error (4xx) response.

    Declaration

    Swift

    case clientError
  • Indicates a server error (5xx) response, or a response with an error code not falling into one of the ranges above.

    Declaration

    Swift

    case serverError