# Error

The `handleError` function returns all errors.

```kotlin
StraicSDK.handleError { error ->
    Log.i( "StraicSDK", "Error: $error")  
}
```

## Error codes

Here is a list of all error codes from the StraicSDK.

| Error code | Description                                                            |
| ---------- | ---------------------------------------------------------------------- |
| 1000       | An error has occurred. Please try again                                |
| 1100       | The SDK is not supported < Android 5.0                                 |
| 1200       | SDK key is missing. Please contact <support@straic.io>                 |
| 1300       | A request is in progress. Please try later                             |
| 1400       | Unknown error                                                          |
| 1500       | Could not decode error payload                                         |
| 1600       | A response has an error                                                |
| 2000       | eSIM installation is successful                                        |
| 2100       | eSIM installation has failed                                           |
| 2200       | eSIM installation has an unknown error                                 |
| 2300       | eSIM functionality is not supported for your device                    |
| 2400       | eSIM is not supported for your Android version                         |
| 2401       | The required Android version for this action is 10.0 or higher         |
| 2500       | No eSIM profile found                                                  |
| 2600       | The eSIM profile is not installable                                    |
| 2700       | The eSIM profile is already installed                                  |
| 2800       | The eSIM activation code is empty                                      |
| 2900       | The eSIM subscription is missing                                       |
| 3000       | The eSIM profile installation is already in progress                   |
| 3100       | The carrier privileges might not match with  keystore file of your app |
| 3200       | The app needs to have carrier privileges for this action               |


---

# 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://carrier-sdk-docs-android.dentwireless.com/error.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.
