1 / 2
Do you think this snippet throws when the server returns HTTP error code 500? It doesn't! Instead, `fetch` returns the response `ok` property as `false`, and you need to check for that.
1 likes 0 replies
?
Do you think this snippet throws when the server returns HTTP error code 500? It doesn't! Instead, `fetch` returns the response `ok` property as `false`, and you need to check for that.
1 likes 0 replies