Fix marshalling for Error codes -- wasn't reading the tag properly