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

# Error Codes

> HTTP status codes returned by the Merchant API

All error responses use the same envelope as successful responses, with `success: false` and an `error` object:

```json theme={null}
{
  "success": false,
  "message": "Unauthorized",
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Unauthorized"
  }
}
```

## Status Codes

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| `200`  | Success                                               |
| `400`  | Bad request — e.g. missing required parameter         |
| `401`  | API key missing or invalid                            |
| `404`  | Resource not found or not scoped to your organization |
| `500`  | Server-side error                                     |
