         @clientDS.post path, params, (error, response, body) =>
 
             if error or response.statusCode isnt 200
-                error = error || new Error(body)
+                error = error || new Error body.error
                 @_logErrorInConsole error
                 callback error
 

            if error
                errorMsg = @ERR_MSG.retrieveData
                console.log error
            else

                #compare given doctype and existing doctype for security

        @clientDS.get path, (error, response, body) =>

            if error or response.statusCode isnt 200
                error = error || new Error body.error
                @_logErrorInConsole error
                callback error

