# Webhook HTTP codes

> What each HTTP status from the ZB Connector webhook means (200, 400, 401, 403, 422, 429, 500), with the exact messages and how to fix them.

Source: https://zb-connector.com/docs/troubleshooting/webhook-http-codes/

The webhook answers every alert with an HTTP status. TradingView shows it in the **Webhook status** column of the alert log. Errors come as JSON: `{"detail": "..."}`.

The checks run in this order: the body, then the license and the rate limit, then the command. A message with a wrong license and a wrong command therefore gets the license error first.

| Status | Message you may see | Meaning | Fix |
| --- | --- | --- | --- |
| **200** | `"status": "received"` with a `queued` count and an `external_id` | The command passed every check and is queued for your EA. **It has not run yet.** | Check the later stages: [find where an alert stopped](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/). |
| **400** | `Body must be a JSON object (check the alert message).` | The message is not valid JSON, or it is JSON but not one object (for example a list or plain text). | Fix the message: [check your message is valid JSON](https://zb-connector.com/docs/tradingview/alert-basics/#check-your-message-is-valid-json). |
| **401** | `unauthorized` | The `license` field is missing or is not text. | Add `"license": "YOUR_LICENSE_KEY"` with your key in quotes. The field is called `license`. |
| **401** | `License not found` | The key does not exist. | Copy the key again from **Licenses** in the dashboard. Check for spaces or a missing character. |
| **403** | `Account deleted` | The account has been deleted. | Contact support. |
| **403** | `Subscription inactive` | The subscription is not active. | Check the plan in the dashboard. |
| **403** | `Trial expired — please subscribe to continue` | The 14-day trial has ended. | Subscribe in the dashboard. |
| **403** | `License expired` | This key has expired. | Renew it or use another license. |
| **422** | `Invalid command: …` | The license is fine, but the command is not: unknown action, unknown or missing field, wrong type or out-of-range value. The text names each problem. **Nothing was queued.** | Read the message and compare with the command’s page in the [cheat sheet](https://zb-connector.com/docs/commands/cheatsheet/). |
| **429** | `Rate limit exceeded: 120 requests per 60s. Retry in … s.` | More than 120 messages in a minute for this license. | Slow the alert down, and wait for the time given in the message. |
| **500** | `Internal server error. Please try again later.` | A problem on our side. | Try again. If it persists, [send the evidence](https://zb-connector.com/docs/troubleshooting/find-where-it-stopped/#still-stuck). |

## Good to know

-   License checks are cached for 12 seconds, so a freshly renewed or changed license can take that long to take effect.
-   TradingView cancels a webhook request that takes longer than 3 seconds.
-   The `external_id` in a 200 reply identifies the command (your license, `CMD`, a 5-digit number). Quote it when you contact support.
-   A 200 is only about the message. A failure at your broker, such as [error 10016](https://zb-connector.com/docs/troubleshooting/errors/10016/), is reported later in Command History.

## Related

-   [Create a TradingView alert](https://zb-connector.com/docs/tradingview/alert-basics/)
-   [How delivery works](https://zb-connector.com/docs/reliability/how-delivery-works/)
