How about e.g. `if (isSuccessStatus(response.status))` and `if (isErrorStatus(response.status))`?