From d0512f93b7a0f92955d29f06b87b50316792ef6a Mon Sep 17 00:00:00 2001 From: harshanl Date: Thu, 18 Aug 2016 11:06:43 +0530 Subject: [PATCH] Fixed EMM-1282 --- .../android/services/impl/DeviceManagementServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/DeviceManagementServiceImpl.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/DeviceManagementServiceImpl.java index fc88819ee9..a7a338deff 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/DeviceManagementServiceImpl.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/main/java/org/wso2/carbon/mdm/services/android/services/impl/DeviceManagementServiceImpl.java @@ -210,10 +210,10 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { policyManagerService.getEffectivePolicy(new DeviceIdentifier(androidDevice.getDeviceIdentifier(), device.getType())); if (status) { Message responseMessage = new Message(); - responseMessage.setResponseCode(Response.Status.OK.toString()); + responseMessage.setResponseCode(Response.Status.CREATED.toString()); responseMessage.setResponseMessage("Android device, which carries the id '" + androidDevice.getDeviceIdentifier() + "' has successfully been enrolled"); - return Response.status(Response.Status.OK).entity(responseMessage).build(); + return Response.status(Response.Status.CREATED).entity(responseMessage).build(); } else { Message responseMessage = new Message(); responseMessage.setResponseCode(Response.Status.INTERNAL_SERVER_ERROR.toString());