unavailable_in_region
The platform does not serve this content in the requested region.
Response
Every failure uses this envelope. credits_charged is 0. The message below is the default text for this code. Live messages can change, so branch on error.code.
SampleHTTP 451
1{2 "ok": false,3 "error": {4 "code": "unavailable_in_region",5 "message": "The platform does not serve this content in the requested region.",6 "retryable": false7 },8 "credits_charged": 0,9 "request_id": "req_0123456789abcdef01234567"10}error.retryable is false. The same request fails the same way.
When it happens
- The platform will not serve this content in the region you asked for. Endpoints that vary by country take
region, a two-letter country code.
What to do
- Try another
regiononly if the endpoint accepts it and the content is offered there. Do not retry the same region.
The response header x-request-id matches request_id. The full list is on errors.