@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.
13 lines (12 loc) • 362 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestError = void 0;
class RequestError extends Error {
constructor(message, status, headers, response) {
super(message);
this.status = status;
this.headers = headers;
this.response = response;
}
}
exports.RequestError = RequestError;
;