Standardize error message formats