# Estructura de respuestas

Las respuestas exitosas deben devolver el código HTTP `200` y la información que corresponda según el servicio. En caso de que se produzca un error, la respuesta debe devolver un código HTTP `4xx` o `5xx` según corresponda y la siguiente estructura de datos:

<table><thead><tr><th width="193">Clave</th><th width="130">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>error</code></strong></td><td><strong>Error</strong></td><td>Error devuelto por el servicio externo.</td></tr></tbody></table>

## Error

<table><thead><tr><th width="194">Clave</th><th width="133">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>code</code></strong></td><td>Int</td><td>Código del error.</td></tr><tr><td><strong><code>description</code></strong></td><td>String</td><td>Descripción del error.</td></tr></tbody></table>


---

# 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://guia.fenicio.help/developers/api-integracion-de-logistica/estructura-de-respuestas.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.
