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

# Error Codes

> Global and endpoint-specific error codes for the OkeyProxy Agent API

## 📦 Global Error Codes

These errors can occur across any API endpoint.

| Code | Description                           |
| ---- | ------------------------------------- |
| 200  | Request successful                    |
| 510  | System exception                      |
| 5001 | Bad request (invalid parameters)      |
| 5002 | Service unavailable (server busy)     |
| 5003 | Invalid API Key                       |
| 5004 | Gateway timeout                       |
| 5005 | Forbidden (agent account is disabled) |

***

## 🔗 Endpoint-Specific Error Codes

### `/v2/secUser/add`

Occurs when adding a new sec-user account.

| Code | Description                               |
| ---- | ----------------------------------------- |
| 5100 | Username already exists                   |
| 5101 | Username does not meet the required rules |

### `/v2/secUser/edit`

Occurs when modifying an existing sec-user account.

| Code | Description                                   |
| ---- | --------------------------------------------- |
| 5102 | Username not found                            |
| 5103 | New password does not meet the required rules |

### `/v2/secUser/info`

Occurs when querying a specific sec-user account.

| Code | Description        |
| ---- | ------------------ |
| 5102 | Username not found |

### `/v2/secUser/disable` and `/v2/secUser/enable`

Occurs when changing the status of a sec-user.

| Code | Description    |
| ---- | -------------- |
| 5104 | Invalid status |

### `/v2/plan/info`

Occurs when retrieving plan details.

| Code | Description            |
| ---- | ---------------------- |
| 5108 | Plan ID does not exist |
