<p>I was able to verify the <code>async(rest_client(...), resume)</code> returns <code>$var(rcode)</code> of 404 with the following route:</p>

<pre><code>route [resume] {
        if ($rc &lt; 0) {
                xlog("Error code $var(rcode) in HTTP GET!\n");
                send_reply("403", "GET Forbidden");
                exit;
        }
}
</code></pre>

<pre><code>Apr 24 16:20:18 localhost opensips[2141]: Error code 404 in HTTP GET!
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/480#issuecomment-95984678">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOcibOfRPHCPbqk3pCeMIG_UYxYABKeks5oCmWggaJpZM4EH6DI.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/480#issuecomment-95984678"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>