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

# Error Handling

> Understand the Partner API response format and error codes

All Partner API responses use a consistent envelope format.

## Response envelope

### Success

```json theme={null}
{
  "success": true,
  "message": "...",
  "data": {}
}
```

### Error

```json theme={null}
{
  "success": false,
  "message": "Error description",
  "errorCode": "ERROR_CODE"
}
```

| Field       | Type    | Description                                    |
| ----------- | ------- | ---------------------------------------------- |
| `success`   | boolean | `true` for success, `false` for error          |
| `message`   | string  | Human-readable status or error description     |
| `data`      | object  | Response payload (present on success)          |
| `errorCode` | string  | Machine-readable error code (present on error) |

## HTTP status codes

| Status | Meaning                                               |
| ------ | ----------------------------------------------------- |
| `200`  | Request succeeded                                     |
| `400`  | Bad request — invalid or missing parameters           |
| `401`  | Unauthorized — missing, expired, or invalid token     |
| `404`  | Resource not found (e.g., tracking ID does not exist) |
| `500`  | Internal server error                                 |
