Errors
Status codes are explicit enough for production handling
Use response status plus error_code and request headers to route retries, credit issues, authentication problems, and upstream provider failures.
200Search completed and normalized.
400Invalid JSON, missing channel, missing query, or unsupported field value.
401Missing, invalid, or revoked API key.
402Account does not have enough credits.
403Account inactive.
409Gateway could not reserve account capacity; retry the request.
413Request body exceeds the 256 KiB public gateway limit.
429Rate limit reached.
502Upstream provider connection failed or returned an unexpected response.
503Database or search provider is not configured.
504Search provider or gateway timed out.