<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong><br>
Examine the response object returned by any <code class="notranslate">http.get</code></p>
<p dir="auto"><strong>Current behavior</strong><br>
<code class="notranslate">res.ok</code> is undefined.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
<code class="notranslate">res.ok</code>, per API doc, " True if the response's status is within 200-299"</p>
<p dir="auto">Let's implement it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="get ok() { return this.status &gt;= 200 &amp;&amp; this.status &lt;= 300; }"><pre class="notranslate"><code class="notranslate">get ok() { return this.status &gt;= 200 &amp;&amp; this.status &lt;= 300; }
</code></pre></div>
<p dir="auto"><strong>Other information</strong><br>
beta.14</p>
<p dir="auto">I'm doing this</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="        return this.http.request(request)
            .map(res =&gt; {
                if (!res.ok) {
                    console.error(res.ok);
                    console.error(res.status);
                }

                return res.json();
            });"><pre class="notranslate">        <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">http</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">)</span>
            <span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">res</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
                <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
                    <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                    <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">error</span><span class="pl-kos">(</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">status</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
                <span class="pl-kos">}</span>

                <span class="pl-k">return</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">json</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
            <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">And some calls report status 200 and ok is undefined:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2280140/12225239/293bc0e0-b85a-11e5-890f-4ca25f4c9093.png"><img src="https://cloud.githubusercontent.com/assets/2280140/12225239/293bc0e0-b85a-11e5-890f-4ca25f4c9093.png" alt="image" style="max-width: 100%;"></a></p>