Add error codes to categorize failures
Add error codes for Hive