Skip to content

Instantly share code, notes, and snippets.

View david-cho-lerat-HL2's full-sized avatar
🏠
Working from home

David Cho-Lerat david-cho-lerat-HL2

🏠
Working from home
View GitHub Profile
@david-cho-lerat-HL2
david-cho-lerat-HL2 / gist:1294f3a1e7cd17e9150ebb211cc8bef0
Created April 4, 2018 16:29
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