resource: refactor error handlings for MetaValue
exchange: be compaitble with new resource.MetaValue api