status
        console.log(&#39;error description&#39;, error.statusText); // xhr.statusText
    });
</code></pre>
<h2 id="chaining-with-an-error">Chaining with an Error</h2>
<p>When chaining calls, any errors in the chain will get caught by your <code>.catch()</code> callback, so you only need one.</p>
<pre><code class="lang-javascript">atomic(&#39;https://jsonplaceholder.typicode.com/posts&#39;)
    .then(function (response) {
        console.log(&#39;all posts&#39;, response.data); // xhr.responseText
  