"use strict";

exports.__esModule = true;
exports.createHttpErrorMock = void 0;
var _yoshiFlowBm = require("@wix/yoshi-flow-bm");
const createHttpErrorMock = ({
  code = 'ERR_NETWORK',
  status = 429,
  requestId
}) => (0, _yoshiFlowBm.createHttpError)({
  response: {
    data: {
      details: {
        applicationError: {
          code
        }
      }
    },
    status,
    statusText: 'ERROR',
    headers: {
      'x-wix-request-id': requestId
    },
    config: {}
  },
  config: {},
  toJSON: () => {
    return {};
  },
  name: '',
  message: '',
  __CANCEL__: false
});
exports.createHttpErrorMock = createHttpErrorMock;
//# sourceMappingURL=HttpErrorMocks.js.map