There's a new option in PowerShell 7 -SkipHttpErrorCheck which will cause the 302 not to throw an error but still allow you to capture the response.
-SkipHttpErrorCheck