Fetch API Response Handlers Sample
Available in Chrome 42+ |
View on GitHub |
Browse Samples
Background
This sample shows how the Promise returned by the Fetch API can be handled to
deal with both successful and error responses.
Live Output
JavaScript Snippet