Update schema to support the new error api