UnsuccessfulResponseError

public class UnsuccessfulResponseError : Error

Error class that indicates the remote server returned an unsuccessful HTTP response code.

  • The HTTP response code received.

    Declaration

    Swift

    public let responseCode: Int
  • Constructor for an UnsuccessfulResponseError.

    Declaration

    Swift

    public init(responseCode: Int)

    Parameters

    responseCode

    The HTTP response code of the unsuccessful response.