Reland: error.code is not defined, should be error.name