Ensures the given HTTP response has a successful status code.
response.ok is false, i.e., response.status is outside the range of 200 ~ 299.
response.ok
false
response.status
Response.ok
Ensures the given HTTP response has a successful status code.