Error

public enum Error : Swift.Error

A type-safe HTTP error.

  • This error indicates that a response could not be parsed correctly.

    Declaration

    Swift

    case invalidResponse
  • This error indicates an unexpected response. Each response can potentially be unexpected, depending on the caller. The arguments of the error are an HTTP status code as well as a description.

    Declaration

    Swift

    case unexpectedResponse(Http.Status, String)