# Error Responses

Errors follow this structure:

```json
{ "error": "ErrorCategory", "message": "Human-readable explanation" }
```

| Code  | Meaning                                                                      |
| ----- | ---------------------------------------------------------------------------- |
| `401` | Missing, invalid, or revoked API key                                         |
| `402` | Insufficient credits                                                         |
| `403` | No active subscription / key lacks scope / wrong agent / master key required |
| `404` | Agent or resource not found                                                  |
| `422` | Validation errors                                                            |
| `502` | Proxy request to agent container failed                                      |
| `503` | Agent container not running                                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.guayaba.run/documentation/api-reference/error-responses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
