Skip to content

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.

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.

HTTP 403. The key may not do this, for example the notify key on /v1/messages. Use the key with the right scope.

HTTP 403. The recipient is not on the allowed list. Add the number or group in the stack’s Settings, then Save and Deploy.

HTTP 404. Unknown id, no QR code active, or an unknown address.

HTTP 405. The address exists, but not with this HTTP method; the Allow header lists the methods it accepts.

HTTP 422. Something in the request is wrong; detail names the field.

HTTP 422. The number has no WhatsApp account. Usually this is reported later, as a failed message.

HTTP 422. The group does not exist, or the linked account is not a member.

HTTP 422. WhatsApp refused the file. Usually this is reported later, as a failed message.

HTTP 413. The request or file is too large: a file at most 16 MB, other requests at most 64 KB.

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.

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.

HTTP 409. The account is blocked, outdated or replaced; GET /v1/status says which. See the states on the HD Chat Bridge page.

HTTP 409. WhatsApp does not let this account message new contacts for now. Your own chat, groups and known contacts still work.

HTTP 409. A link was requested while an account is linked. Unlink first if you want to link another account.

HTTP 409. A link attempt is already running. Wait for its code to be used or to expire.

HTTP 409. A webhook test while the stack has no webhook address. Fill in the webhook address in Settings first.

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.

HTTP 429. Too many messages. Wait retry_after seconds and retry with the same idempotency_key; do not retry in a loop.

HTTP 429. The daily budget for new numbers is used up. Try again tomorrow.

HTTP 429. The same text to too many people. That is exactly what gets numbers blocked: personalise or combine the messages.

HTTP 429. Too many wrong keys from your address. Fix the key and wait.

HTTP 500. Something unexpected went wrong. Give the detail (a request id) to HD Services at helpdesk@hdservices.nl.

A message that was accepted (202) and failed later has status failed and one of these error_code values:

The bridge could not deliver after 5 attempts because of connection problems.

An unexpected error repeated for 5 attempts, or the stored message could not be rebuilt. The bridge log has the details.

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.