Hi All, Here I have summarized all status code currently we ara handling in EMM Android Agent.
EndpointUse case/ ReasonResponse - StatuscodeStatusMessage TitleMessage Action1 /oauth2/token Login with valid credentials200Success-- 2Invalid username/password400FailAuthenitcation FailedIncorrect login information. Please try again.Stay in login screen3Invalid server address OR server is down500FailConnection FailedServer is unavailable. Please contact administrator.Stay in login screen4 all status code other than aboveFailAuthentication FailedCannot proceed the authentication. Please contact administrator.Stay in login screen5 /devices/isregistered/ No user inputs -send the request200Success-- 6Invalid server address OR server is down500FailConnection FailedServer is unavailable. Please contact administrator.depends on calling screen7 all status code other than aboveFailRegistration FailedCannot proceed the registration. Please contact administrator.depends on calling screen8 /devices/sender_id/ No user inputs -send the request200Success-- 9Invalid server address OR server is down500FailConnection FailedServer is unavailable. Please contact administrator.Stay in login screen10 all status code other than aboveFailEnrollment FailedEnrollment failed, please contact administratorStay in login screen11 /devices/license/ No user inputs -send the request200Success-- 200 - Null string for license agreementfailEnrollment FailedEnrollment failed, please contact administrator.Stay in login screen12Invalid server address OR server is down500FailConnection FailedServer is unavailable. Please contact administrator.Stay in login screen13 all status code other than aboveFailEnrollment FailedEnrollment failed, please contact administrator.Stay in login screen14 /devices/register/ No user inputs -send the request200Success---15Invalid server address OR server is down500FailConnection FailedServer is unavailable. Please contact administrator.Stay in same screen16 all status code other than aboveFailRegistration FailedCannot proceed the registration. Please contact administrator.load registration failed screen17 /devices/unregister/ Clicks on unregister button200Success---18Clicks on unregister button - Server is down500FailConnection FailedServer is unavailable. Please contact administrator.Stay in same screen19Clicks on unregister buttonall status code other than aboveFail-- load unregitration failed screen20 /notifications/pendingOperations/ No user inputs -send the request200Success --21Invalid server address OR server is down500Fail---22 all status code other than aboveFail--- Notes: 1. We are not showing any messages when failing notifications. If notification is failed, it will auto notify at the next wake up of the device. Therefore we do not need to inform user regarding on that. 2. If user has not logged by using EMM, the license agreement will be null string. We should have a *proper status code when license agreement is null*(for BYOD users). Through the Android/ iOS agent, we should give proper message to the user at that time. Currently we are getting for 200 which is indicated a successful response. Please let us know your thoughts on this status codes and their messages. Thank you. -- Best Regards, Krishanthi Bhagya Samarasinghe Senior Software engineer Mobile: +94 716028280
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
