no need for statusCode check simple: "if (error)"