Integrations & API

Error codes reference

3 minutes read time Difficulty: intermediate

Error codes reference

Common error codes you may encounter when using the AIsoule API or sending messages.

HTTP status codes

CodeMeaningAction
200SuccessRequest completed
400Bad RequestCheck your request body/params
401UnauthorizedInvalid or missing API key
403ForbiddenInsufficient permissions
404Not FoundResource doesn't exist
409ConflictDuplicate resource
429Rate LimitedWait and retry
500Server ErrorRetry; contact support if persistent

WhatsApp-specific errors

CodeErrorSolution
131047Re-engagement messageOutside 24h window — use a template
131048Spam rate limitToo many messages — slow down
131049Message not sentGeneric failure — check number validity
131051Unsupported message typeMessage type not allowed for this number
131052Media download failedMedia URL is inaccessible
131053Media upload failedFile too large or wrong format
131056Pair rate limitToo many messages to new contacts
131057Account in maintenanceWait and retry in a few minutes
368Temporarily blockedQuality issues — review your content
130429Rate limit hitSlow down sending speed

AIsoule-specific errors

Error messageCauseSolution
"Outside service window"24h window expiredSend a template message
"Template not approved"Template pending/rejectedWait for approval or fix and resubmit
"Account disconnected"Token expiredReconnect account or refresh token
"Recipient not on WhatsApp"Number doesn't have WhatsAppVerify the number
"Rate limit exceeded"Too many API callsImplement backoff, wait 60 seconds
"Invalid phone number"Wrong formatUse country code, digits only

Tips

  1. Log error codes — Helps with debugging patterns
  2. Implement retry for 429/500 — These are temporary
  3. Don't retry 400/401/403 — These need code fixes
  4. Check Meta statusmetastatus.com for outages

Was this guide helpful?

Your feedback helps us make these guides better for everyone.