# ErrorResponse

> Properties used in any event or callback which needs to report a success or failure.

- Source: https://titaniumsdk.com/docs/sdk/ErrorResponse
- Titanium SDK version: 13.4.1
- Kind: pseudo
- Platforms: Android, iPhone, iPad, macOS

## Properties

### code

- Type: Number
- Platforms: Android, iPhone, iPad, macOS

Error code. Returns 0 if `success` is `true`.

Error code will be 0 if `success` is `true`, nonzero otherwise. If the error
was generated by the operating system, that system's error value is used.
Otherwise, this value will be -1.

### error

- Type: String
- Platforms: Android, iPhone, iPad, macOS

Error message, if any returned.

Will be undefined if `success` is `true`.

### success

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS

Indicates if the operation succeeded.

Returns `true` if request succeeded, `false` otherwise.

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

