I wonder if Powershell Invoke-WebRequest will throw client side errors on a download request, such as disk full?
For instance:
# Download recording
try {
$ProgressPreference = 'SilentlyContinue'
$r = Invoke-WebRequest -Uri $jwtURL -OutFile $outfile
$a = [int]$r.StatusCode
}
catch {
$a = [int]$_.Exception.Response.StatusCode
}
Would the code above get only http status code, or also write errors on the local file system?