Invoke-Restmethod: how do I get the return code?
<p>Is there a way to store the return code somewhere when calling <code>Invoke-RestMethod</code> in PowerShell?</p>

<p>My code looks like this:</p>

<pre><code>$url = "http://www.dictionaryapi.com/api/v1/references/collegiate/xml/Adventure?key=MyKeyGoesHere"

$XMLReturned = Invoke-RestMethod -Uri $url -Method Get;
</code></pre>

<p>I don't see anywhere in my <code>$XMLReturned</code> variable a return code of 200.  Where can I find that return code?</p>