PUBLISH
Errors and diagnostics
Understand the failure and choose the correct recovery.
Start with the failed request
Log method, parameterized route, status, time, and requestId when available. Never copy Authorization, JWT, credential, or raw context to a ticket.
HTTP and next action
Differentiate authentication, authorization, contract, and infrastructure failure.
| Status | Diagnosis / action |
|---|---|
| 400 | Verifique corpo, campos obrigatórios, enums, datas e tamanho. |
| 401 in issuer | sik_ credential missing, incorrect, or revoked. |
| 401 in conversation | Renew the session; check identity and signature migration. |
| 403 | Incompatible or denied context. Do not force another identity. |
| 404 | Non-existent conversation or someone else’s. Do not bypass the owner. |
| 429 | Reduce volume; backoff with jitter and retry limit. |
| 500 / 502 / 503 | Investigate context, provider, and infrastructure by requestId. |
| 501 | Executor/connector unavailable. Use the human channel. |
Recover without duplication
The SDK retries after 401 and repeats once; it does not offer a general automatic policy for all 429/5xx. Implement limited retries where they are safe.
Other tools require confirmation of their arguments in the same session within five minutes. The provider receives Idempotency-Key. Check uncertain results in the source application.