Validation error ---------------- +------------------------+-------------------+----------------------------------------+ | Name | Type | Description | +========================+===================+========================================+ | code | number | error code | +------------------------+-------------------+----------------------------------------+ | message | string | error message | +------------------------+-------------------+----------------------------------------+ Validation error codes ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +------------------------+------------------------------------------------------------------------------------+ | Code | Description | +========================+====================================================================================+ | 1000 | Access rules validation error | +------------------------+------------------------------------------------------------------------------------+ | 1001 | You cannot assign other access greater than yours | +------------------------+------------------------------------------------------------------------------------+ | 1002 | You can't grant device access for its owner | +------------------------+------------------------------------------------------------------------------------+ | 1003 | Device access for this user already exists | +------------------------+------------------------------------------------------------------------------------+ | 1004 | You invited this user earlier | +------------------------+------------------------------------------------------------------------------------+ | 1005 | Device is not in the organization | +------------------------+------------------------------------------------------------------------------------+ | 1006 | Group does not exist | +------------------------+------------------------------------------------------------------------------------+ | 1007 | Device access for this group already exists | +------------------------+------------------------------------------------------------------------------------+ | 1008 | Cannot assign access to yourself | +------------------------+------------------------------------------------------------------------------------+ | 1009 | Device access for group already exists | +------------------------+------------------------------------------------------------------------------------+ | 1010 | Device access for user already exists | +------------------------+------------------------------------------------------------------------------------+