docs: function(body, error, code, errorTraceId, errorUserTitle, errorUserMessage) {
              _$jscmd("utils.js", "line", 104);
              //TODO: support errorTraceId
              //TODO: errorUserTitle and errorUserMessage should be change from strings to ints (==code) to support localization
              var response = {};
              //set code
              if (_$jscmd("utils.js", "cond", "107_7_26", !__isNullOrUndefined(code))) {
                  _$jscmd("utils.js", "line", 108);
                  response.code = code;
              } else {
                  if (_$jscmd("utils.js", "cond", "111_8_26", !__isNullOrUndefined(body))) response.code = 0; else //if (!__isNullOrUndefined(error))
                  response.code = 1e3;
              }
              //set body
              if (_$jscmd("utils.js", "cond", "118_7_26", !__isNullOrUndefined(body))) response.body = body;
              //set error
              if (_$jscmd("utils.js", "cond", "122_7_27", !__isNullOrUndefined(error))) {
                  _$jscmd("utils.js", "line", 123);
                  response.error = error;
                  //set errorTraceId
                  if (_$jscmd("utils.js", "cond", "126_8_34", !__isNullOrUndefined(errorTraceId))) response.errorTraceId = errorTraceId;
                  //set errorUserTitle
                  if (_$jscmd("utils.js", "cond", "130_8_36", !__isNullOrUndefined(errorUserTitle))) response.errorUserTitle = errorUserTitle; else {
                      _$jscmd("utils.js", "line", 134);
                      //TODO: this is not the real implementation
                      response.errorUserTitle = "Bolt Error " + response.code.toString();
                  }
                  //set errorUserMessage
                  if (_$jscmd("utils.js", "cond", "138_8_38", !__isNullOrUndefined(errorUserMessage))) response.errorUserMessage = errorUserMessage; else {
                      _$jscmd("utils.js", "line", 142);
                      //TODO: this is not the real implementation
                      response.errorUserMessage = errors[response.code];
                  }
              }
              _$jscmd("utils.js", "line", 146);
              return JSON.stringify(response);
          }