res has statusCode, not err.