DEV Community

Discussion on: Create an awesome JS API interface using Fetch (in less than 50 lines)

Collapse
 
paul_melero profile image
Paul Melero

I think it'd be useful to include in the Error handler the actual error message returned by the api (on response.status !== 200) 😉