UNPKG

@gam-test/fetch-wrapper

Version:

A simple fetch wrapper for better error handling and less response context

16 lines (14 loc) 479 B
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _RequestExceptionjs = require('./RequestException.js'); class UnauthorizedException extends _RequestExceptionjs.RequestException { constructor({ url, payload }) { super({ message: "Unauthorized", url, payload, statusCode: 401, responseBody: null }); } } exports.UnauthorizedException = UnauthorizedException; //# sourceMappingURL=UnauthorizedException.js.map