Skip to main content

Error Handling

WazzAPI uses standard HTTP status codes, but the exact JSON body can vary depending on the type of failure.

Error Format

Validation errors usually use a detail array format:
Application-rule failures usually return a simpler payload:

Common Error Codes

Handling Specific Errors

Validation Errors (422)

Field-level details are returned when the request body or query parameters are invalid.

Account Disconnected (400)

If the WhatsApp account is disconnected or unavailable:
What to do: Reconnect the device in Devices, or listen for device.disconnected on your webhook and reconnect before sending again.

Proxy change while connected (409)

You cannot change proxy settings while the device is still connected:
What to do: Disconnect the device, update the proxy, then reconnect. See Proxy Support.

Invalid proxy URL (400)

What to do: Use http://host:port or socks5://user:pass@host:port. HTTP proxies need an explicit port.