# Error Handling Guide

## `ErrorBio`[​](https://developers.unico.io/docs/check/SDK/android/referencias#objeto-errorbio) Object <a href="#objeto-errorbio" id="objeto-errorbio"></a>

This object is returned whenever an error occurs in the **iOS SDK**.

### Available Methods <a href="#metodos-disponiveis" id="metodos-disponiveis"></a>

| Method Name            | Description                                                       |
| ---------------------- | ----------------------------------------------------------------- |
| **`getCode()`**        | Method used to obtain the error code that occurred.               |
| **`getDescription()`** | Method used to obtain the description of the error that occurred. |

Below is a list of possible error codes from the **iOS SDK**:

| Code    | Description                                                                                                                                                                                                                                                                       |
| ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `73000` | `The Session was cancelled because of an unknown and unexpected error. The Unico Check SDK leverages a variety of iOS APIs including camera, storage, security, networking, and more. This return value is a catch-all for errors experienced during normal usage of these APIs.` |
| `73001` | `Context invalid`                                                                                                                                                                                                                                                                 |
| `73003` | `The API version needs to be 13 or newer.`                                                                                                                                                                                                                                        |
| `73006` | `Unable to open camera on emulators`                                                                                                                                                                                                                                              |
| `73100` | `Unable to connect to internet`                                                                                                                                                                                                                                                   |
| `73200` | `Could not find the unico_sdk json file`                                                                                                                                                                                                                                          |
| `73202` | `Unable to load unico_sdk json file`                                                                                                                                                                                                                                              |
| `73203` | `Unable to load AcessoBioConfigDataSource`                                                                                                                                                                                                                                        |
| `73204` | `Unable to initialize the SDK, please configure the environment on setEnviroment method of build.`                                                                                                                                                                                |
| `73300` | `Unable to get unico authentication object`                                                                                                                                                                                                                                       |
| `73301` | `Unable to parse unico authentication object`                                                                                                                                                                                                                                     |
| `73302` | `Could not find the unico token`                                                                                                                                                                                                                                                  |
| `73701` | `Could not find active liveness import`                                                                                                                                                                                                                                           |
| `73702` | `Unable to initialize active liveness in production mode`                                                                                                                                                                                                                         |
| `73703` | `Unable to get active liveness session`                                                                                                                                                                                                                                           |
| `73704` | `The user pressed the cancel button and did not complete the Session.`                                                                                                                                                                                                            |
| `73705` | `The Session was not performed successfully and a FaceScan was not generated. In general, other statuses will be sent to the developer for specific unsuccess reasons.`                                                                                                           |
| `73706` | `The camera access is prevented because either the user has explicitly denied permission or the user's device is configured to not allow access by a device policy.`                                                                                                              |
| `73707` | `The Session was cancelled due to the app being terminated, put to sleep, an OS notification, or the app was placed in the background.`                                                                                                                                           |
| `73708` | `The Session was cancelled because the device is in landscape mode. The user experience of devices in these orientations is poor and thus portrait is required.`                                                                                                                  |
| `73709` | `The Session was cancelled because the device is in reverse portrait mode. The user experience of devices in these orientations is poor and thus portrait is required.`                                                                                                           |
| `73710` | `The Session was cancelled because the user was unable to complete a Session in the default allotted time or the timeout set by the developer.`                                                                                                                                   |
| `73711` | `The Session was cancelled due to memory pressure.`                                                                                                                                                                                                                               |
| `73712` | `The Session was cancelled because your App is not in production and requires a network connection.`                                                                                                                                                                              |
| `73713` | `The Session was cancelled because your key needs to be validated again.`                                                                                                                                                                                                         |
| `73714` | `The Session was cancelled because the developer-configured encryption key was not valid.`                                                                                                                                                                                        |
| `73715` | `The Session was cancelled because not all guidance images were configured.`                                                                                                                                                                                                      |
| `73716` | `The Session was cancelled because SDK was unable to start the camera on this device.`                                                                                                                                                                                            |
| `73717` | `The Session was cancelled because the user was in a locked out state.`                                                                                                                                                                                                           |
| `73718` | `The Session was cancelled because of an unknown and unexpected error. SDK leverages a variety of iOS APIs including camera, storage, security, networking, and more. This return value is a catch-all for errors experienced during normal usage of these APIs.`                 |
| `73719` | `The Session was cancelled because the user pressed the Get Ready screen subtext message. Note: This functionality is not available by default, and must be requested from FaceTec in order to enable it.`                                                                        |
| `73720` | `The Session was not processed.`                                                                                                                                                                                                                                                  |
| `73721` | `The Session can't be performed: attempts limit exceeded.`                                                                                                                                                                                                                        |
| `73722` | `The Session can't be performed: face alignment timeout.`                                                                                                                                                                                                                         |
| `73730` | `Unable to initialize an active liveness session because of an unknown and unexpected license error.`                                                                                                                                                                             |
| `73731` | `Unable to initialize an active liveness session because the license has expired.`                                                                                                                                                                                                |
| `73800` | `Could not build encrypted key`                                                                                                                                                                                                                                                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://devcenter.unico.io/unico-idcloud/by-client-integration/sdk/available-sdks/ios-sdk/error-handling-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
