`if (status === 403 && status === 401) return false;` should be `if (status === 403 || status === 401) return false;`