Per offline chat with agawronska@:
Enrollment failure should come with some error code, so we can display meaningful information to the user why enrollment fail and how to recover.
Right now it is totally blackbox. The failure might be temporary connectivity on Slave or problem with FRE record that won't go away with time.
Proposed change:
Send [error code, error message] to Master using following convention:
[0, "no error"]
[1*, "network error"]
[2*, "authentication error"], e.g., [21, "Service unavailable"], ...
[3*, "enrollment error"], e.g., [31, "DMserver registration error"], [32, "Policy validation error"], ...
[4*, "other error"]
Comment 1 by bugdroid1@chromium.org
, Mar 23 2017