> ## Documentation Index
> Fetch the complete documentation index at: https://otpless.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Error Codes

In Compose Multiplatform, error codes align with the respective native SDKs:

* **For Android**: Compose Multiplatform follows the error codes defined by the [Android SDK](https://otpless.com/docs/frontend-sdks/app-sdks/android/new/references/error-codes).
* **For iOS**: Compose Multiplatform follows the error codes defined by the [iOS SDK](https://otpless.com/docs/frontend-sdks/app-sdks/ios/new/references/error-codes).

This means that when handling errors in Compose Multiplatform, you should refer to the platform-specific error codes based on whether the app is running on Android or iOS.

## Sample code

To handle errors in Compose Multiplatform for Android and iOS, [refer this](https://otpless.com/docs/frontend-sdks/app-sdks/cmp/headless/intro#error-handling)
