# Result Codes and Errors

This reference lists the status codes and error fields returned by the Get Mini application. Use these values to determine the outcome of a transaction and diagnose processing errors.

## Activity Result Codes

The Android system returns a standard `resultCode` in the `ActivityResult` callback. This indicates whether the Get Mini activity finished its workflow.

| Code Constant | Value | Description |
| :---- | :---- | :---- |
| `RESULT_OK` | `-1` | The Get Mini app completed the flow. This does **not** imply transaction authorization. Check the `STATE` extra to determine transaction outcome. |
| `RESULT_CANCELED` | `0` | The user aborted the process or the app encountered a critical startup error. |

<Callout type="warning">

`RESULT_OK` only means the Get Mini application completed its workflow. You must check the `STATE` Intent extra to determine if the transaction was actually successful.

</Callout>

## Reading the Outcome

`RESULT_OK` tells you the Get Mini app finished its flow, not that the payment went through. The outcome itself travels in two extras of the returned Intent:

| Field Name | Type | Description |
| :---- | :---- | :---- |
| `STATE` | String | Result code of the operation. On a declined operation it carries the denial code. |
| `ERROR_MSG` | String | Description of the error. |

Read `STATE` first, and show `ERROR_MSG` when it is present — it explains the failure in terms the cardholder can act on.

For the full set of extras returned by each operation, see [Response Parameters](/en/get-mini/get-mini-app2app/reference/response-parameters).

## Related Resources

* [Response Parameters](/en/get-mini/get-mini-app2app/reference/response-parameters) - Complete reference for all response fields
* [Handle Transaction Results](/en/get-mini/get-mini-app2app/transaction-guides/response-handling/handle-transaction-results) - Step-by-step guide for implementing response logic
* [Request Parameters](/en/get-mini/get-mini-app2app/reference/request-parameters) - Input parameters for transaction Intents