UNPKG

@logi.one/rest-client

Version:

This is a free, ultra-lightweight and easy to use rest client for node.js supporting JSON requests and streams with no external dependencies.

16 lines (15 loc) 401 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequestError = void 0; class RequestError extends Error { status; headers; response; constructor(message, status, headers, response) { super(message); this.status = status; this.headers = headers; this.response = response; } } exports.RequestError = RequestError;