Error Format
Error Codes
Validation Errors
422 VALIDATION_ERROR responses include field-level details:
Best Practices
- Check the
codefield for programmatic error handling, not themessage - Log the full error response for debugging
- Implement retry logic with exponential backoff for
429and5xxerrors - Do not retry
4xxerrors (except429) — they indicate a client issue
Domain-specific 422 responses
Some endpoints return422 with a domain-specific message identifying which input field failed which rule. See:
- AB 660 / Date Labels — the Products API returns
422whenproduct_name,description,net_content, orusage_instructionscontains a phrase banned by California AB 660 (e.g."sell by","best before","expires on").