PUBLIC_COUNTRY_CODE_UNKNOWNUnknown country code.
Z BizKitHub Docs, referencia chybových kódov API
Názvy a popisy kódov udržiavame v angličtine.
HTTP 400Verejné API
The `country` query parameter must be a valid ISO 3166-1 alpha-2 code (e.g. "CZ", "SK", "DE"). The endpoint uses it to filter posts by geo-availability rules (per-country + per-continent). When omitted, no geo filter is applied — callers that do not need the filter can drop the parameter entirely to preserve the legacy behaviour.
Ako to vyriešiť
- 1
Verify the country code is the 2-letter ISO alpha-2 form (e.g. "GB" instead of "UK", "CZ" instead of "CZE").
- 2
Drop the `country` query parameter to disable geo filtering and return every post.
Ukážka odpovede
API odpovie statusom HTTP 400 a telom vo formáte JSON. Porovnávajte errorCode, nie message. Správy sa môžu preformulovať, kódy zostávajú rovnaké.
application/json
{
"state": "error",
"code": 400,
"message": "Unknown country code.",
"errorCode": "PUBLIC_COUNTRY_CODE_UNKNOWN",
"hint": "The `country` query parameter must be a valid ISO 3166-1 alpha-2 code (e.g. \"CZ\", \"SK\", \"DE\"). The endpoint uses it to filter posts by geo-availability rules (per-country + per-continent). When omitted, no geo filter is applied — callers that do not need the filter can drop the parameter entirely to preserve the legacy behaviour.",
"documentationUrl": "https://docs.bizkithub.com/errors/PUBLIC_COUNTRY_CODE_UNKNOWN"
}