Status codes
A few things worth knowing:
- Redirects are not followed, even within your own domain. Configure the final URL in Studio.
204 No Contentis a 2xx with an empty body, so it fails asinvalid_json. Return{"version": 1, "status": "no_answer"}instead.- Anagram does not read
Retry-After, rate-limit headers, or any header other than the status line. A429is just anotherhttp_error. - Response bodies on error are discarded. Nothing in them reaches the agent, Studio, or the shopper, so include whatever detail helps your own logs.
Limits
The 8-second timeout is the one most endpoints trip over. If your system needs a slow model call or a database scan, answer with what you can compute quickly, or precompute. A
no_answer in 300 ms is better for the shopper than a perfect answer at 9 seconds, which is discarded.