0👍
✅
The promise will reject if the response status is not in the 200’s, in which case response.ok
will be false.
Source:stackexchange.com