Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save david-cho-lerat-HL2/1294f3a1e7cd17e9150ebb211cc8bef0 to your computer and use it in GitHub Desktop.
Save david-cho-lerat-HL2/1294f3a1e7cd17e9150ebb211cc8bef0 to your computer and use it in GitHub Desktop.
Current code and detail fields for API errors
code | detail | service(s)
--------------------|-----------------------------------------------------------|------------------------------------------
already_used | Already in use | account, hook, app, device, product, team
impersonate | Cannot impersonate yourself | account
missing | Does not exist | alert, device
user.missing | Unknown user | alert
no_product | A device linked to an application must have a product | app
linked | A device linked to an application can not be unregistered | device
linked | A device linked to an application must have a product | device
orphan_organization | An organization needs at least one owner | org
public | A public product cannot be updated | product
public | A public product cannot be removed | product
used | A product used by a device cannot be removed | product
unaffiliated | Unaffiliated to the team's organization | team
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment