From 7b62d2769e36dc800e543db446664b3415988a44 Mon Sep 17 00:00:00 2001 From: Ace Date: Tue, 14 Jun 2016 15:28:59 +0530 Subject: [PATCH] Changing response code returned when adding user --- .../mgt/jaxrs/service/impl/UserManagementServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/UserManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/UserManagementServiceImpl.java index a7d9794773..ee67791fdd 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/UserManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/UserManagementServiceImpl.java @@ -84,7 +84,7 @@ public class UserManagementServiceImpl implements UserManagementService { log.debug("User '" + userWrapper.getUsername() + "' has successfully been added."); } // returning response with success state - return Response.status(Response.Status.OK).entity("User by username: " + userWrapper.getUsername() + + return Response.status(Response.Status.CREATED).entity("User by username: " + userWrapper.getUsername() + " was successfully added.").build(); } } catch (UserStoreException e) {