WalletAuthApiError

public enum WalletAuthApiError : WalletErrorApiResponse, JsonApiResponse, Decodable, Encodable

Wallet-Auth API response error

400: The query with the specified parameters cannot be performed.

  • The broken syntax of the query, the query cannot be parsed.

    Declaration

    Swift

    case syntaxError
  • Part of the request parameters is missing or has an invalid value.

    Declaration

    Swift

    case illegalParameters([String])

    Parameters

    _

    The list of names that contain invalid values.

  • Part of HTTP request headers is missing or has an invalid value.

    Declaration

    Swift

    case illegalHeaders([String])

    Parameters

    _

    The list of names that contain invalid values.

401: Error client authentication or verification of the sufficiency of the authorization request.

  • Missing or invalid Basic-authorization headers.

    Declaration

    Swift

    case invalidCredentials
  • Missing or invalid OAuth2 authorization wallet.

    Declaration

    Swift

    case invalidToken
  • Missing or invalid electronic signature request.

    Declaration

    Swift

    case invalidSignature

403: The client requested an operation which is not allowed.

  • Specified authorization of the wallet does not have sufficient rights for performing this operation.

    Declaration

    Swift

    case invalidScope
  • Requested operation forbidden

    Declaration

    Swift

    case forbidden

500: Technical error.

  • Technical error. The result of the query is unknown.

    Note

    The client should repeat the request with the same arguments after the recommended retry time.

    Declaration

    Swift

    case technicalError
  • Service temporary unavailable.

    Declaration

    Swift

    case serviceUnavailable

Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws