Merge status and error into result