Note to self ($Error[0].Exception.Response.StatusCode.value__) #5
Locked
JeremyTBradshaw
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With Invoke-RestMethod ending in error, HTTP status code # is available via:
$Error[0].Exception.Response.StatusCode.value__
.This could be easier with Invoke-WebRequest. Just parking this wee-bit of intel here for a later date.
Beta Was this translation helpful? Give feedback.
All reactions