SDK Errors

In this reference you can find a description of all errors that can occur in the iOS SDK. See the error handling topic guide for more info on handling the errors when they occur.

Error Code Description
ONGGenericErrorNetworkConnectivityFailure 9000 Due to a problem with the device internet connection it was not possible to initiate the requested action.
ONGGenericErrorServerNotReachable 9001 It is not possible to connect with the Token Server.
ONGGenericErrorDeviceDeregistered 9002 The device registration was removed from the Token Server. All locally stored data is removed from the device and the user needs to register again.
ONGGenericErrorUserDeregistered 9003 The user account is deregistered from the device. The user supplied the wrong PIN for too many times. All local data associated with the user profile has been removed.
ONGGenericErrorOutdatedApplication 9004 The Token Server denotes that the current app is no longer valid and can no longer be used. The end-user must update the application.
ONGGenericErrorOutdatedOS 9005 The Token Server does not allow this application to run on the current OS version. Instruct the user to update the OS.
ONGGenericErrorActionCancelled 9006 The action was cancelled.
ONGGenericErrorActionAlreadyInProgress 9007 The requested action is already in progress and can not be performed concurrently.
ONGSDKInitialisationErrorDeviceRegistrationFailed, ONGRegistrationErrorDeviceRegistrationFailure 9008 The device could not be registered with the Token Server. Verify that the SDK configuration, Token Server configuration and security features are correctly configured.
ONGGenericErrorDeviceUpdateFailure 9019 Updating the device registration with the Token Server failed. Verify that the SDK configuration, Token Server configuration and security features are correctly configured.
ONGAuthenticationErrorInvalidPin 9009 The provided PIN was invalid
ONGAuthenticatorRegistrationErrorUserNotAuthenticated, ONGAuthenticatorDeregistrationErrorUserNotAuthenticated, ONGPinChangeErrorUserNotAuthenticated, ONGMobileAuthenticationEnrollmentErrorUserNotAuthenticated, ONGFetchResourceErrorUserNotAuthenticated 9010 The action can't be performed because no user is currently authenticated, possibly due to the fact that the access token has expired. A user must be authenticated in order to perform the action.
ONGPinValidationErrorPinBlackListed 9011 The provided PIN was marked as blacklisted on the Token Server.
ONGPinValidationErrorPinShouldNotBeASequence 9012 The provided PIN contains a not allowed sequence.
ONGPinValidationErrorPinShouldNotUseSimilarDigits 9013 The provided PIN contains too many similar digits.
ONGPinValidationErrorWrongPinLength 9014 The provided PIN length is invalid.
ONGAuthenticationErrorAuthenticatorInvalid 9015 The authenticator that you tried to use is invalid. It may not exist, please verify whether you have supplied the correct authenticator.
ONGMobileAuthenticationEnrollmentErrorDeviceAlreadyEnrolled 9016 The device is already enrolled for mobile authentication. This may happen in case an old push token is still left behind in the Token Server database and is reused by the OS.
ONGMobileAuthenticationEnrollmentErrorEnrollmentNotAvailable 9017 The Mobile authentication feature is disabled in the Token Server configuration.
ONGMobileAuthenticationEnrollmentErrorUserAlreadyEnrolled 9018 The user is already enrolled for mobile authentication on another device.
ONGGenericErrorUnknown 10000 A generic error occurred.
ONGGenericErrorConfigurationInvalid 10001 The Token Server configuration is invalid.
ONGRegistrationErrorInvalidState 10002 The SDK detected that there was a possible CSRF attack
ONGDeregistrationErrorLocalDeregistration 10003 The user was only deregistered on the device. The device registration has not been removed on the server-side due to a connection problem. This does not pose a problem but you might want to inform the end-user as he might be able to see that he/she is still registered through a web portal.
ONGAuthenticatorRegistrationErrorAuthenticatorAlreadyRegistered 10004 The given authenticator is already registered and can therefore not be registered again.
ONGAuthenticationErrorFidoAuthenticationDisabled 10005 The Token Server configuration does not allow you to use FIDO authenticators. Enable FIDO authentication for the current application in the Token Server configuration to allow FIDO authenticator usage.
ONGAuthenticatorRegistrationErrorAuthenticatorNotSupported 10006 The given authenticator is not supported.
ONGAuthenticationErrorAuthenticatorNotRegistered 10007 The given authenticator is not registered and can therefore not be used.
ONGAuthenticatorPinDeregistrationNotPossible 10008 The PIN authenticator can't be deregistered.
ONGLogoutErrorLocalLogout 10009 The user was only logged out on the device. The access token has not been invalidated on the server-side. This does not pose a problem but you might want to inform the end-user as he might be able to see that he/she is still logged in through a web portal.
ONGFetchResourceErrorInvalidMethod, ONGFetchAnonymousResourceErrorInvalidMethod 10010 The provided request method is not valid, use one of @"GET", @"POST", @"DELETE", @"PUT"
ONGMobileAuthenticationEnrollmentErrorMissingDevicePushToken 10011 The device Push Token is not set.
ONGFetchAnonymousResourceErrorDeviceNotAuthenticated 10012 A device access token could not be retrieved. Check your Application configuration in the Token Server.
ONGMobileAuthenticationRequestErrorNotFound 10013 The mobile authentication request was not found. Please make sure that the mobile authentication request is available. This might be an indication that your Token Server setup is not complete. Cache replication might not work properly.
ONGGenericErrorRequestInvalid 10015 The request to the Token Server was invalid. Please verify that the Token Server configuration is correct and that no reverse proxy is interfering with the connection.
ONGAuthenticationErrorFidoServerNotReachable 10016 The FIDO server is not reachable by the Token Server