@gam-test/fetch-wrapper
Version:
A simple fetch wrapper for better error handling and less response context
20 lines (18 loc) • 1.12 kB
JavaScript
Object.defineProperty(exports, "__esModule", {value: true});var _BadRequestExceptionjs = require('./BadRequestException.js');
var _ConflictExceptionjs = require('./ConflictException.js');
var _ForbiddenExceptionjs = require('./ForbiddenException.js');
var _InternalServerErrorExceptionjs = require('./InternalServerErrorException.js');
var _NotFoundExceptionjs = require('./NotFoundException.js');
var _PayloadTooLargeExceptionjs = require('./PayloadTooLargeException.js');
var _UnauthorizedExceptionjs = require('./UnauthorizedException.js');
const statusCodeExceptionsMap = /* @__PURE__ */ new Map([
[400, _BadRequestExceptionjs.BadRequestException],
[401, _UnauthorizedExceptionjs.UnauthorizedException],
[403, _ForbiddenExceptionjs.ForbiddenException],
[404, _NotFoundExceptionjs.NotFoundException],
[409, _ConflictExceptionjs.ConflictException],
[413, _PayloadTooLargeExceptionjs.PayloadTooLargeException],
[500, _InternalServerErrorExceptionjs.InternalServerErrorException]
]);
exports.statusCodeExceptionsMap = statusCodeExceptionsMap;
//# sourceMappingURL=statusCodeExceptionsMap.js.map
;