According to the docs, if you set followRedirect: false
, then a 302
status code should throw an error of ERR_NON_2XX_3XX_RESPONSE
as per https://github.com/sindresorhus/got/blob/c41a98a6f76fa265476abdccb1a823651dbe961b/documentation/8-errors.md#httperror. There is no way to configure the limitStatusCode
variable used here
Lines 118 to 120 in 3e82b50
If followRedirect: false
then 302 status code does not throw error.
If followRedirect: false
then 302 status code should throw error.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too