fetch
Also written: res.ok
The built-in function for making HTTP requests. `res.ok` is false for answers like 404 or 500, so the app checks it and throws an error with a friendly message.
Also written: res.ok
The built-in function for making HTTP requests. `res.ok` is false for answers like 404 or 500, so the app checks it and throws an error with a friendly message.