> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/selphi/selphi-resultado.md).

# Selphi Result

#### finishStatus

Returns a number from the operation result. Possible values:

* **1**: The operation was successful.
* **2**: An error has occurred, which will be indicated in the string ***`errorType`*** and, optionally, an extra information message will be shown in the property ***`errorMessage`***.

#### finishStatusDescription

Returns a description of the operation result. Possible values:

* **STATUS\_OK**: The operation was successful.
* **STATUS\_ERROR**: An error has occurred, which will be indicated in the string ***`errorType(errorDiagnostic for Flutter)`*** and, optionally, an extra information message will be shown in the property ***`errorMessage`***.

#### errorType or errorDiagnostic(only for Flutter) <a href="#id-61-recepcion-de-errores" id="id-61-recepcion-de-errores"></a>

Indicates why the component failed. Possible values:

In iOS, the `errorType` received from the SDK in a Timeout may be `SDK_TIMEOUT` or `SELPHI_TIMEOUT(LivenessDiagnostic?)`. There is no case in iOS `TIMEOUT` without prefix. The case `SELPHI_TIMEOUT` preserves, when available, the Liveness diagnosis (`LivenessDiagnostic?`). In hybrid integrations, the internal name of the Swift enum should not be used as the response contract.

To serialize the error in iOS, use:

```swift
errorType.toString(addComponentPrefix: "SPI_")
```

This returns `SPI_TIMEOUT` both for `SDK_TIMEOUT` and for `SELPHI_TIMEOUT`. In Android, the equivalent of the error list is `TIMEOUT` (without prefix).

In an iOS Timeout:

* `finishStatus` es `STATUS_ERROR`
* `data` es `nil` (no `templateRaw`, `bestImage`, etc.)
* The extra Liveness information, if it exists, goes in the associated value of `SELPHI_TIMEOUT`, not in `data`

{% content-ref url="/pages/bced26561fe92aa9a9d6c52c404f342a93aeec33" %}
[Selphi - Error List](/docs.facephi-en/sdks/sdk-mobile/framework-plugins/extras/selphi/selphi-listado-de-errores.md)
{% endcontent-ref %}

#### errorMessage

Indicates an additional error message. It is an optional value.

#### **templateRaw**

Returns the raw template generated after the extraction process. Valid for the process of **Matching**.

#### **template**

Returns the template generated after the extraction process. Valid for the process of **Matching**.

#### **bestImage**

Returns the best image extracted from the authentication process. This image has the original size extracted from the camera. Valid for the process of **liveness**.

#### **bestImageCropped**

Returns a cropped image centered on the user's face. This image is obtained from the *bestImage*.

#### **logImages**

List of the 5 best captured images. It is returned if the "logImages" flag is enabled in the configuration.

#### **bestImageTokenized**

Returns the best image extracted in the encrypted process. Valid for the process of **liveness**.

#### **IAD**

Returns a Token/hash that must be used to call a validation service. Adds a layer of defense against sophisticated attacks that use digital injection or advanced spoofing.
