Errores de la API de ecentic.
Cada fallo de la API de ecentic es un documento de problema tipado, no una página HTML. El código es el contrato: es estable, legible por máquinas y seguro para tomar decisiones.
RFC 9457 · Códigos estables · Pistas de resolución
La forma de un problema
Un solo tipo de medio y un solo esquema, en cada 4xx y 5xx que devuelve la API.
application/problem+json
Las respuestas llevan Content-Type: application/problem+json — deliberadamente no application/json, porque el tipo de medio es la señal que permite a un cliente genérico saber que el cuerpo describe un fallo y no el recurso solicitado.
Leer la respuesta
- type
- La URI que identifica el problema, anclada en esta referencia.
- code
- El identificador estable sobre el que tu cliente puede tomar decisiones.
- title
- Un resumen breve para personas.
- status
- El estado HTTP, repetido en el cuerpo.
- detail
- Qué falló en esta petición concreta.
- resolution
- El siguiente paso para resolver el fallo.
- documentation
- La página de referencia de la respuesta.
- instance
- La ruta que produjo el fallo, cuando se conoce.
Catálogo de errores
Los códigos quedan congelados una vez publicados. Los títulos y las pistas pueden reformularse; los códigos no.
12Códigos de problema publicados
Abre un código para leer su resolución. Cada código tiene un enlace permanente.
Cómo resolverlo
Check the path against the OpenAPI document at /openapi.json or the API catalog at /.well-known/api-catalog.
Cómo resolverlo
Re-read the operation in /openapi.json; the `Allow` header lists the methods this path accepts.
Cómo resolverlo
Send `Authorization: Bearer ecentic_sk_…`. Registration and key minting are documented at /auth.md.
Cómo resolverlo
Settle the x402 challenge in the `PAYMENT-REQUIRED` header, or use the free discovery surfaces under /.well-known and /api/v1.
Cómo resolverlo
This operation needs an active ecentic plan. Plans are listed at /api/v1/plans and purchasable at /pricing.
Cómo resolverlo
Compare the request body against the operation's request schema in /openapi.json.
Cómo resolverlo
Fix the fields named in `errors` and retry. Field schemas live in /openapi.json.
Cómo resolverlo
The resource already exists or has changed. Re-read it and retry with the current state.
Cómo resolverlo
Wait for the number of seconds in `Retry-After`, then retry. The active policy is in the `RateLimit-Policy` header and documented at /docs/rate-limits.
Cómo resolverlo
Retry with exponential backoff; the failure is transient.
Cómo resolverlo
Retry with exponential backoff. If it persists, report it at /support with the `instance` value from this response.