MinigetError: Status code: 403
at ClientRequest.<anonymous> (D:\Downloads\Technoid\Project-mars-Backend-
main\server\Backend\node_modules\miniget\dist\index.js:206:27)
at Object.onceWrapper (node:events:633:26)
at ClientRequest.emit (node:events:518:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:698:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17)
at TLSSocket.socketOnData (node:_http_client:540:22)
at TLSSocket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:559:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
at Readable.push (node:internal/streams/readable:390:5) {
statusCode: 403
}
I am trying to access the youtube video and trying to download it for the use of my code and it is forbidding the process
Here's the ERROR
let err = new Miniget.MinigetError(
Status code: ${res.statusCode}, res.statusCode);^
Can anyone help me out on this?