@gam-test/fetch-wrapper
Version:
A simple fetch wrapper for better error handling and less response context
16 lines • 363 B
JavaScript
import { RequestException } from "./RequestException.js";
class UnauthorizedException extends RequestException {
constructor({ url, payload }) {
super({
message: "Unauthorized",
url,
payload,
statusCode: 401,
responseBody: null
});
}
}
export {
UnauthorizedException
};
//# sourceMappingURL=UnauthorizedException.js.map