success: alwaysfalsefor errors.code: the HTTP status code.message: a short human-readable summary.fields: validation details when a request fails validation.
Error codes
Common validation errors
Validation failures return400 with a fields array describing each problem:
Handling errors
- Check
codeand handle each status explicitly. - For
429, retry with exponential backoff. - For
401, verify yourapi-keyheader and that the key belongs to the Bonai News API product workspace. - For
402, check your plan’s limits.