WAWaxiomatic

Errors

Every error response is JSON with the same shape. HTTP status indicates the category; the code field is the stable machine-readable identifier you should branch on.

Response shape

{
  "error": {
    "code": "template.rejected",
    "message": "Meta rejected this template: PROMOTIONAL_CONTENT_IN_UTILITY",
    "details": {
      "metaCode": 132012,
      "templateId": "tpl_…"
    }
  }
}

HTTP status conventions

StatusMeaningShould retry?
400Bad request — validation errorNo (fix the input)
401Missing / invalid API keyNo (fix auth)
403Authenticated but not allowedNo
404Resource doesn't existNo
409Conflict — duplicate or stale versionSometimes (re-fetch first)
422Semantic validation failureNo
429Rate limit hitYes, after X-RateLimit-Reset
500Server errorYes, with backoff
503Service unavailable (downstream)Yes, with backoff

Common error codes

CodeWhat it means
contact.invalid_phonePhone failed E.164 / regional normalization
contact.duplicateA contact with this phone already exists in this org
template.not_approvedTemplate exists but Meta hasn't approved it
template.rejectedMeta rejected — see details.metaCode
message.outside_windowTried to send free-form text >24h after last inbound
waba.quality_redPhone quality dropped to Red — broadcasts paused
plan.quota_exceededHit your monthly message limit on the current plan
auth.missing_scopeAPI key doesn't have the required scope