Enumerations

The following enumerations are available globally.

  • Represents errors that can occur when making REST API requests using SwiftlyRest.

    Each case corresponds to a specific error scenario, including HTTP status codes, network issues, and unexpected responses.

    See more

    Declaration

    Swift

    public enum SwiftlyRestError : Error, Equatable, Sendable
  • Represents the HTTP methods used in REST API requests.

    Each case corresponds to a standard HTTP method for interacting with RESTful services.

    See more

    Declaration

    Swift

    public enum HTTPMethod : String, Equatable
  • Represents HTTP status codes that are considered retryable for REST API requests.

    Use this enum to identify errors where a retry attempt may be appropriate.

    See more

    Declaration

    Swift

    public enum RetryableCodes : Int, Equatable