@gravity-ui/gateway 2.5.2-alpha.0 → 2.5.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -347,7 +347,7 @@ function createRestAction(endpoints, config, serviceKey, actionName, options, Er
347
347
  options.sendStats(Object.assign(Object.assign({}, requestData), { responseSize: getRestResponseSize((_h = error === null || error === void 0 ? void 0 : error.response) === null || _h === void 0 ? void 0 : _h.data, ctx, ErrorConstructor), restStatus: responseStatus, userId }), (0, redact_sensitive_headers_1.redactSensitiveHeaders)(parentCtx, headers), parentCtx, { debugHeaders: (0, common_1.sanitizeDebugHeaders)(debugHeaders) });
348
348
  }
349
349
  else {
350
- ctx.stats(Object.assign(Object.assign({}, requestData), { responseStatus: 200 }));
350
+ ctx.stats(Object.assign(Object.assign({}, requestData), { responseStatus }));
351
351
  }
352
352
  ctx.logError('Request failed', error, {
353
353
  actionURL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/gateway",
3
- "version": "2.5.2-alpha.0",
3
+ "version": "2.5.3-alpha.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "main": "build/index.js",