You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running either Invoke-WebRequest or Invoke-RestMethod against a server returning an HTTP error code (e.g. 404), PowerShell 5 on Windows throws an exception which contains a response object. In PowerShell 6 on Mac OS X the response object is not available.
When running either
Invoke-WebRequestorInvoke-RestMethodagainst a server returning an HTTP error code (e.g. 404), PowerShell 5 on Windows throws an exception which contains a response object. In PowerShell 6 on Mac OS X the response object is not available.Steps to reproduce
Expected behavior
The expected behaviour is, that the exception contains a response as
HttpWebResponseobject:Actual behavior
Environment data