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 a7d97947731..ee67791fddc 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) {