HD Chat Bridge error codes
Every refusal of the HD Chat Bridge API is a JSON problem with a code, and its type links to the matching entry on this page. Program against code, never against title or detail. The complete API description is the API guide.
Refusals
Section titled “Refusals”unauthorized
Section titled “unauthorized”HTTP 401. The key is missing or unknown. Send Authorization: Bearer <key> with the API key, notify key or admin key from the stack’s Settings.
forbidden
Section titled “forbidden”HTTP 403. The key may not do this, for example the notify key on /v1/messages. Use the key with the right scope.
recipient_not_allowed
Section titled “recipient_not_allowed”HTTP 403. The recipient is not on the allowed list. Add the number or group in the stack’s Settings, then Save and Deploy.
not_found
Section titled “not_found”HTTP 404. Unknown id, no QR code active, or an unknown address.
method_not_allowed
Section titled “method_not_allowed”HTTP 405. The address exists, but not with this HTTP method; the Allow header lists the methods it accepts.
validation_failed
Section titled “validation_failed”HTTP 422. Something in the request is wrong; detail names the field.
recipient_not_on_whatsapp
Section titled “recipient_not_on_whatsapp”HTTP 422. The number has no WhatsApp account. Usually this is reported later, as a failed message.
group_not_found
Section titled “group_not_found”HTTP 422. The group does not exist, or the linked account is not a member.
media_rejected
Section titled “media_rejected”HTTP 422. WhatsApp refused the file. Usually this is reported later, as a failed message.
payload_too_large
Section titled “payload_too_large”HTTP 413. The request or file is too large: a file at most 16 MB, other requests at most 64 KB.
risk_not_accepted
Section titled “risk_not_accepted”HTTP 409. The stack does not accept the risk: the setting WHATSAPP_RISK_ACCEPTED is not ticked (true; older stacks: I ACCEPT). The account owner reads the warning and accepts it themselves in the stack’s Settings, then Save and Deploy.
not_linked
Section titled “not_linked”HTTP 409. No account is linked, or it was logged out. Also returned by POST /v1/logout while nothing is linked; add wipe_messages: true to erase the kept messages anyway. Link the account.
account_unavailable
Section titled “account_unavailable”HTTP 409. The account is blocked, outdated or replaced; GET /v1/status says which. See the states on the HD Chat Bridge page.
account_restricted
Section titled “account_restricted”HTTP 409. WhatsApp does not let this account message new contacts for now. Your own chat, groups and known contacts still work.
already_linked
Section titled “already_linked”HTTP 409. A link was requested while an account is linked. Unlink first if you want to link another account.
link_in_progress
Section titled “link_in_progress”HTTP 409. A link attempt is already running. Wait for its code to be used or to expire.
webhook_not_configured
Section titled “webhook_not_configured”HTTP 409. A webhook test while the stack has no webhook address. Fill in the webhook address in Settings first.
public_access_required
Section titled “public_access_required”HTTP 409. A client setup link is opened from the internet. In the stack Settings tick Reachable from the internet, fill in Public domain (HD Services creates the DNS record), Save and deploy, then create the link again.
rate_limited
Section titled “rate_limited”HTTP 429. Too many messages. Wait retry_after seconds and retry with the same idempotency_key; do not retry in a loop.
new_recipient_limit
Section titled “new_recipient_limit”HTTP 429. The daily budget for new numbers is used up. Try again tomorrow.
duplicate_content
Section titled “duplicate_content”HTTP 429. The same text to too many people. That is exactly what gets numbers blocked: personalise or combine the messages.
too_many_auth_failures
Section titled “too_many_auth_failures”HTTP 429. Too many wrong keys from your address. Fix the key and wait.
internal
Section titled “internal”HTTP 500. Something unexpected went wrong. Give the detail (a request id) to HD Services at helpdesk@hdservices.nl.
Failed messages
Section titled “Failed messages”A message that was accepted (202) and failed later has status failed and one of these error_code values:
delivery_timeout
Section titled “delivery_timeout”The bridge could not deliver after 5 attempts because of connection problems.
delivery_failed
Section titled “delivery_failed”An unexpected error repeated for 5 attempts, or the stored message could not be rebuilt. The bridge log has the details.
expired
Section titled “expired”The message waited more than 24 hours (for example while the account was unlinked) and was dropped on purpose, so nobody gets a day-old alert.
The codes recipient_not_on_whatsapp, group_not_found, media_rejected and account_restricted above can also appear here.