Fix get_error_code_and_message to deal with new unified error format.