"""Generic error messages.""" ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_BAD_REQUEST = 'bad_request' ERROR_CODE_CONFLICT = 'conflict' ERROR_CODE_NOT_FOUND = 'not_found' ERROR_CODE_VALIDATION_ERROR = 'validation_error' CODE_FAILED_DEACTIVATE_USER = 'deactivate_user_failed' CODE_FAILED_ACTIVATE_USER = 'activate_user_failed' CODE_FAILED_UPDATE_AUTH0_USER = 'update_auth0_user_failed' CODE_FAILED_REVOKE_ACCESS_FOR_TENANT = 'revoke_access_for_tenant_failed' CODE_FAILED_GET_IDENTITY_TENANT_COUNT = 'get_identity_tenant_count_failed' ERROR_MESSAGE_MISSING_GRASS_HEADERS = 'Missing Grass Headers' ERROR_MESSAGE_INCOMPLETE_GRASS_HEADERS = 'Incomplete Grass Headers' ERROR_MESSAGE_INVALID_DATA = 'Unable to process the request because it contains invalid data.' ERROR_MESSAGE_INVALID_GRASS_ACCOUNT_TYPE = 'Invalid Grass Account Type' ERROR_MESSAGE_FORBIDDEN_USER = 'User is forbidden' ERROR_MESSAGE_INVALID_PROFILE = 'Invalid Profile type' ERROR_MESSAGE_SUPER_ADMIN = 'User is forbidden to assign resources at super_admin level.' ERROR_MESSAGE_CANNOT_ASSIGN_RESOURCE = 'Cannot assign resource to this identity' INTERNAL_LOGGING_BLOCKED_VENDOR_STAR = 'Blocked attempt to assign vendor*' ERROR_MESSAGE_CREATE_RELATIONSHIP_FAILED = ( 'Failed to create relationship. Please check if both the nodes exist.' ) SUCCESS_CODE = 'ok' ERROR_MESSAGE_DELETE_RELATIONSHIP_FAILED = ( 'Failed to delete relationship. Please check if relationship between ' 'both nodes exist.' ) ERROR_MESSAGE_GET_FAILED = 'Failed to get resources. Please try again.' BULK_ADD_IDENTITY_PROFILES = 'Failed to bulk add identities, profiles and resources.' ADD_PROFILE_ROLES_TO_IDENTITY = 'Failed to add resource access to identity using profile/roles' CREATE_AUTH0_USER = 'Failed to create user for this email.' MESSAGE_BULK_ADD_RESOURCES = 'Failed to bulk add profiles and resources.' MESSAGE_BULK_DELETE_RESOURCES = 'Failed to bulk delete profiles and resources.' MESSAGE_GET_IDENTITIES = 'Failed to get identities. Please try again.' MESSAGE_GET_RESOURCES = 'Failed to get resources. Please try again.'