ecentic API errors.
Every failure on the ecentic API is a typed problem document, not an HTML page. The code is the contract: it is stable, machine-readable, and safe to branch on.
RFC 9457 · Stable codes · Resolution hints
The shape of a problem
One media type, one schema, on every 4xx and 5xx the API returns.
application/problem+json
Responses carry Content-Type: application/problem+json — deliberately not application/json, because the media type is how a generic client knows the body describes a failure rather than the resource it asked for.
Read the response
- type
- The URI naming the problem, anchored in this reference.
- code
- The stable identifier your client can branch on.
- title
- A short human-readable summary.
- status
- The HTTP status, repeated in the body.
- detail
- What went wrong on this particular request.
- resolution
- The next step to resolve the failure.
- documentation
- The reference page for the response.
- instance
- The request path that produced it, when known.
Error catalogue
Codes are frozen once published. Titles and hints may be reworded; codes may not.
12Published problem codes
Open a code to read its resolution. Every code has a permanent link.
How to resolve
Check the path against the OpenAPI document at /openapi.json or the API catalog at /.well-known/api-catalog.
How to resolve
Re-read the operation in /openapi.json; the `Allow` header lists the methods this path accepts.
How to resolve
Send `Authorization: Bearer ecentic_sk_…`. Registration and key minting are documented at /auth.md.
How to resolve
Settle the x402 challenge in the `PAYMENT-REQUIRED` header, or use the free discovery surfaces under /.well-known and /api/v1.
How to resolve
This operation needs an active ecentic plan. Plans are listed at /api/v1/plans and purchasable at /pricing.
How to resolve
Compare the request body against the operation's request schema in /openapi.json.
How to resolve
Fix the fields named in `errors` and retry. Field schemas live in /openapi.json.
How to resolve
The resource already exists or has changed. Re-read it and retry with the current state.
How to resolve
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.
How to resolve
Retry with exponential backoff; the failure is transient.
How to resolve
Retry with exponential backoff. If it persists, report it at /support with the `instance` value from this response.