# 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               |
