ription&#39;, error.statusText); // xhr.statusText
    });
</code></pre>
<h2 id="with-an-error">With an Error</h2>
<pre><code class="lang-javascript">atomic(&#39;https://jsonplaceholder.typicode.com/postses&#39;)
    .then(function (response) {
        console.log(&#39;success data&#39;, response.data); // xhr.responseText
        console.log(&#39;success full response&#39;, response.xhr);  // full response
    })
    .catch(function (error) {
        console.log(&#39;error code&#39;, error.status); // xhr.