# 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>
