Fetch

Given a URL, fetch will return a promise which will return the results of of a network request to the URL.

This is what happens when a fetch fails. Many folks like the async/await syntax. Be sure to use it correctly, however.