Karta. Messaging. Plugs. Bird. Errors
(Karta v1.0.0)
What Bird's answers to a send mean for Karta (Karta.Messaging.Errors):
| Answer | Class | Also |
|---|---|---|
| 202 | accepted | |
| 401, 403 | permanent, unauthorized | the connector is paused (error) |
| 402 | permanent, insufficient_balance | the connector is paused |
409 E01004 (same key in flight) | retry | |
409 E01005 (key with another body) | permanent | |
| 421 (key for the other region) | permanent, wrong_region | the connector is paused |
422 SMSDestinationNotEnabled, SMSDestinationDailySpendExceeded, SMSAlphaNotSupported, SMSUnsupportedFeature | permanent, the code | |
422 about the recipient (code with Recipient, Destination+Invalid, InvalidNumber) | unknown_recipient | |
| other 422, 400 | permanent | |
| 429 | rate_limited | Retry-After seconds |
| 5xx, a transport error or a timeout | retry, same attempt | the job runs again with the same Idempotency-Key (Bird does not keep a 5xx for the key, so nothing is sent twice) |
The body of an error is {"error": {"code", "name", "message", "type", "param", "request_id", "doc_url"}} (seen against the real API on
2026-11-13: E01001 ValidationError for an http callback URL, E12056
SMSSenderNotConfigured for a sender the workspace does not have). Karta keeps
the code (E12056). The documentation's descriptive names
(SMSDestinationNotEnabled, SMSDestinationDailySpendExceeded,
SMSAlphaNotSupported, SMSUnsupportedFeature) are the name; E01004 and
E01005 are codes. Recipient errors are matched by pattern on the code or the
name because the documentation does not list them. All of these are permanent.
Summary
Functions
{:error, class, detail} for an HTTP answer; detail.pause says the connector must be paused.
Whether the detail asks for the connector to be paused.
A transport failure (connection refused, timeout): the same attempt is tried again.
Functions
{:error, class, detail} for an HTTP answer; detail.pause says the connector must be paused.
Whether the detail asks for the connector to be paused.
A transport failure (connection refused, timeout): the same attempt is tried again.