How to add delay to promise inside then
<pre><code>fetch() {   
    return axios.get('/rest/foo')
        //.then(response =&gt; {throw new Error(response)}) // Uncomment to test network error
        //.then( &lt;&lt;add delay here&gt;&gt; ) // Uncomment to simulate network delay
}
</code></pre>

<p>How do I add delay in the latter then block, so it will wait specified amount of time before passing control to the fetch callers then blocks?</p>