nit: just write the expression? "errorCode.httpCode == -1" ?