slyrics
Version:
Scrape Lyrics without API Key
15 lines • 684 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SLyricsHTTPRequestError = void 0;
const SLyricsError_1 = require("./SLyricsError");
const http_1 = require("http");
class SLyricsHTTPRequestError extends SLyricsError_1.SLyricsError {
constructor(statusCode, requestURL, method) {
super(`Error on request ${requestURL} using method ${method ?? "Unknown method"} ${statusCode} ${http_1.STATUS_CODES[statusCode]}`);
this.statusCode = statusCode;
this.requestURL = requestURL;
this.method = method;
}
}
exports.SLyricsHTTPRequestError = SLyricsHTTPRequestError;
//# sourceMappingURL=SLyricsHTTPRequestError.js.map