Is there a way to store the return code somewhere when calling Invoke-RestMethod
in PowerShell?
My code looks like this:
$url = "http://www.dictionaryapi.com/api/v1/references/collegiate/xml/Adventure?key=MyKeyGoesHere"
$XMLReturned = Invoke-RestMethod -Uri $url -Method Get;
I don't see anywhere in my $XMLReturned
variable a return code of 200. Where can I find that return code?