facn2 / knafeh

news for multiple countries
0 stars 3 forks source link

your fetch function should handle errors/other status codes than 200 #59

Open mattlub opened 7 years ago

mattlub commented 7 years ago

https://github.com/facn2/knafeh/blob/master/scripts/api.js#L6

what happens if the request does not get a 200 response?