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 Status Meaning Should retry? 400 Bad request — validation error No (fix the input) 401 Missing / invalid API key No (fix auth) 403 Authenticated but not allowed No 404 Resource doesn't exist No 409 Conflict — duplicate or stale version Sometimes (re-fetch first) 422 Semantic validation failure No 429 Rate limit hit Yes, after X-RateLimit-Reset 500 Server error Yes, with backoff 503 Service unavailable (downstream) Yes, with backoff
Common error codes Code What 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
← Previous Rate limits & retries