Every error has the same shape:
  • Branch on meta.error_code, never on error: the message can change, the code won’t.
  • details gives per-field messages for a 400.
  • Include meta.request_id when you contact support.
  • Errors cost nothing and carry no credit headers.
Parameters are always checked: an unknown parameter or a bad value is a 400, never silently ignored, so a typo can’t quietly widen your search.