Scenario

Node.js Axios API Scenario

Stop pre-process the 301 redirect request

let config = {
  // https://github.com/axios/axios#request-config
  maxRedirects: 0,  // avoid buffering the entire stream
}
let response = await AxiosHttp.get(url, config);

Reference