In this lesson, learn how to handle errors from fetch requests. One really important take away is that only network layer issues actually throw an error. For server responses that aren’t in the 200 range, you’ll need to check the response.ok
property and throw your own errors.
Links