Problem object
Some codes add extensions such as required, region, errors, field, contactId, callId or reason.
Validation errors contain entries with path, code and optional message. Branch on code rather than matching title or detail text.
Campaign send field errors
A campaign send or validate call that fails with validation_failed lists each wrong field in errors. The path names the field and the code names the problem.
Replace KEY with the key name. A value must be text, a number, or true or false. The reason in the message can say that the value has a line break, a tab, five or more spaces in a row, or too many characters. For a link, it can say that the value has characters that cannot go in a link.
Do not retry a validation_failed response with the same body. Fix the fields first.
Usecase and template codes
These codes apply to a campaign that sends usecases. Retry only the ones marked retryable, and honor the Retry-After header.
When several problems apply, the response names the first in this order: campaign paused, wrong usecase field, retired usecase, usecase turned off, template state, then data fields. A malformed recipient number comes first on a paused campaign, and after the usecase checks on an active one.
